home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-10-01 | 18.5 KB | [ TEXT/MPS ]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sun Oct 1 00:00:00 1989, modified Sun Oct 1 00:00:00 1989, creator 'MPS ', type ASCII, 18373 bytes "ModalList.c" , at 0x4845 362 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ MPS ]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0b 4d 6f 64 61 6c 4c | 69 73 74 2e 63 00 00 00 |..ModalL|ist.c...| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......| |00000050| 00 00 00 00 00 47 c5 00 | 00 01 6a a1 4b 3c 40 a1 |.....G..|..j.K<@.| |00000060| 4b 3c 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K<@.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 46 c4 00 00 |........|....F...| |00000080| 2f 2a 0d 23 0d 23 09 41 | 70 70 6c 65 20 4d 61 63 |/*.#.#.A|pple Mac| |00000090| 69 6e 74 6f 73 68 20 44 | 65 76 65 6c 6f 70 65 72 |intosh D|eveloper| |000000a0| 20 54 65 63 68 6e 69 63 | 61 6c 20 53 75 70 70 6f | Technic|al Suppo| |000000b0| 72 74 0d 23 0d 23 09 4d | 6f 64 61 6c 4c 69 73 74 |rt.#.#.M|odalList| |000000c0| 20 3a 20 53 69 6d 70 6c | 65 20 4d 6f 64 61 6c 20 | : Simpl|e Modal | |000000d0| 44 69 61 6c 6f 67 20 61 | 6e 64 20 4c 69 73 74 20 |Dialog a|nd List | |000000e0| 4d 61 6e 61 67 65 72 20 | 53 61 6d 70 6c 65 20 41 |Manager |Sample A| |000000f0| 70 70 6c 69 63 61 74 69 | 6f 6e 0d 23 0d 23 09 4d |pplicati|on.#.#.M| |00000100| 6f 64 61 6c 4c 69 73 74 | 2e 63 0d 23 0d 23 09 43 |odalList|.c.#.#.C| |00000110| 6f 70 79 72 69 67 68 74 | 20 a9 20 31 39 38 39 20 |opyright| . 1989 | |00000120| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, | |00000130| 49 6e 63 2e 0d 23 09 41 | 6c 6c 20 72 69 67 68 74 |Inc..#.A|ll right| |00000140| 73 20 72 65 73 65 72 76 | 65 64 2e 0d 23 0d 23 09 |s reserv|ed..#.#.| |00000150| 56 65 72 73 69 6f 6e 73 | 3a 09 0d 23 09 09 09 31 |Versions|:..#...1| |00000160| 2e 30 30 20 09 09 09 09 | 09 31 30 2f 38 39 0d 23 |.00 ....|.10/89.#| |00000170| 0d 23 09 43 6f 6d 70 6f | 6e 65 6e 74 73 3a 0d 23 |.#.Compo|nents:.#| |00000180| 09 09 09 4d 6f 64 61 6c | 4c 69 73 74 2e 6d 61 6b |...Modal|List.mak| |00000190| 65 09 09 09 4f 63 74 6f | 62 65 72 20 31 2c 20 31 |e...Octo|ber 1, 1| |000001a0| 39 38 39 0d 23 09 09 09 | 4d 6f 64 61 6c 4c 69 73 |989.#...|ModalLis| |000001b0| 74 2e 68 09 09 09 09 4f | 63 74 6f 62 65 72 20 31 |t.h....O|ctober 1| |000001c0| 2c 20 31 39 38 39 0d 23 | 09 09 09 4d 6f 64 61 6c |, 1989.#|...Modal| |000001d0| 4c 69 73 74 2e 63 09 09 | 09 09 4f 63 74 6f 62 65 |List.c..|..Octobe| |000001e0| 72 20 31 2c 20 31 39 38 | 39 0d 23 09 09 09 4d 6f |r 1, 198|9.#...Mo| |000001f0| 64 61 6c 4c 69 73 74 2e | 72 09 09 09 09 4f 63 74 |dalList.|r....Oct| |00000200| 6f 62 65 72 20 31 2c 20 | 31 39 38 39 0d 23 0d 23 |ober 1, |1989.#.#| |00000210| 09 4d 6f 64 61 6c 4c 69 | 73 74 20 69 73 20 61 6e |.ModalLi|st is an| |00000220| 20 65 78 61 6d 70 6c 65 | 20 61 70 70 6c 69 63 61 | example| applica| |00000230| 74 69 6f 6e 20 74 68 61 | 74 20 64 65 6d 6f 6e 73 |tion tha|t demons| |00000240| 74 72 61 74 65 73 0d 23 | 09 68 6f 77 20 74 6f 20 |trates.#|.how to | |00000250| 75 73 65 20 74 68 65 20 | 44 69 61 6c 6f 67 20 4d |use the |Dialog M| |00000260| 61 6e 61 67 65 72 20 61 | 6e 64 20 4c 69 73 74 20 |anager a|nd List | |00000270| 4d 61 6e 61 67 65 72 20 | 72 6f 75 74 69 6e 65 73 |Manager |routines| |00000280| 0d 23 09 74 6f 67 65 74 | 68 65 72 2e 20 49 74 20 |.#.toget|her. It | |00000290| 69 73 20 6e 6f 74 20 61 | 20 67 6f 6f 64 20 65 78 |is not a| good ex| |000002a0| 61 6d 70 6c 65 20 6f 66 | 20 61 20 73 61 6d 70 6c |ample of| a sampl| |000002b0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 0d 23 09 |e applic|ation.#.| |000002c0| 62 75 74 20 61 20 67 72 | 65 61 74 20 65 78 61 6d |but a gr|eat exam| |000002d0| 70 6c 65 20 6f 66 20 74 | 68 65 20 75 73 65 20 6f |ple of t|he use o| |000002e0| 66 20 6c 69 73 74 73 20 | 69 6e 20 61 20 64 69 61 |f lists |in a dia| |000002f0| 6c 6f 67 2e 20 54 68 65 | 0d 23 09 64 65 66 61 75 |log. The|.#.defau| |00000300| 6c 74 20 4c 44 45 46 20 | 69 73 20 75 73 65 64 20 |lt LDEF |is used | |00000310| 74 6f 20 64 69 73 70 6c | 61 79 20 61 20 32 20 64 |to displ|ay a 2 d| |00000320| 69 6d 65 6e 73 69 6f 6e | 61 6c 20 6c 69 73 74 20 |imension|al list | |00000330| 6f 66 20 73 74 72 69 6e | 67 73 2e 0d 23 09 45 61 |of strin|gs..#.Ea| |00000340| 63 68 20 63 65 6c 6c 27 | 73 20 73 74 72 69 6e 67 |ch cell'|s string| |00000350| 20 69 73 20 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 | is init|ialized | |00000360| 74 6f 20 72 65 70 72 65 | 73 65 6e 74 20 69 74 27 |to repre|sent it'| |00000370| 73 20 70 6f 73 69 74 69 | 6f 6e 20 69 6e 20 74 68 |s positi|on in th| |00000380| 65 0d 23 09 6c 69 73 74 | 2e 20 54 68 65 20 75 73 |e.#.list|. The us| |00000390| 65 72 20 63 61 6e 20 63 | 68 61 6e 67 65 20 74 68 |er can c|hange th| |000003a0| 65 73 65 20 73 74 72 69 | 6e 67 73 20 61 6e 64 20 |ese stri|ngs and | |000003b0| 73 65 61 72 63 68 20 66 | 6f 72 20 61 20 70 61 72 |search f|or a par| |000003c0| 74 69 63 75 6c 61 72 0d | 23 09 73 65 74 74 69 6e |ticular.|#.settin| |000003d0| 67 2e 20 4f 6e 63 65 20 | 61 67 61 69 6e 20 74 68 |g. Once |again th| |000003e0| 69 73 20 69 73 20 6e 6f | 74 20 6d 65 61 6e 74 20 |is is no|t meant | |000003f0| 61 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 61 70 |as an ex|ample ap| |00000400| 70 6c 69 63 61 74 69 6f | 6e 20 61 6e 64 0d 23 09 |plicatio|n and.#.| |00000410| 74 68 65 72 65 20 61 72 | 65 20 73 6f 6d 65 20 66 |there ar|e some f| |00000420| 65 61 74 75 72 65 73 20 | 74 68 61 74 20 61 72 65 |eatures |that are| |00000430| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 69 6e 20 74 | documen|ted in t| |00000440| 68 65 20 73 6f 75 72 63 | 65 20 6c 69 73 74 69 6e |he sourc|e listin| |00000450| 67 0d 23 09 74 68 61 74 | 20 79 6f 75 20 73 68 6f |g.#.that| you sho| |00000460| 75 6c 64 20 70 61 79 20 | 63 6c 6f 73 65 20 61 74 |uld pay |close at| |00000470| 74 65 6e 74 69 6f 6e 20 | 74 6f 20 69 6e 6f 72 64 |tention |to inord| |00000480| 65 72 20 74 6f 20 75 6e | 64 65 72 73 74 61 6e 64 |er to un|derstand| |00000490| 20 68 6f 77 0d 23 09 74 | 68 69 73 20 65 78 61 6d | how.#.t|his exam| |000004a0| 70 6c 65 20 77 6f 72 6b | 73 2e 0d 23 0d 2a 2f 0d |ple work|s..#.*/.| |000004b0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 51 75 69 63 6b |.#includ|e <Quick| |000004c0| 44 72 61 77 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |Draw.h>.|#include| |000004d0| 20 3c 46 6f 6e 74 73 2e | 68 3e 0d 23 69 6e 63 6c | <Fonts.|h>.#incl| |000004e0| 75 64 65 20 3c 43 6f 6e | 74 72 6f 6c 73 2e 68 3e |ude <Con|trols.h>| |000004f0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 44 69 61 6c 6f |.#includ|e <Dialo| |00000500| 67 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |gs.h>.#i|nclude <| |00000510| 57 69 6e 64 6f 77 73 2e | 68 3e 0d 23 69 6e 63 6c |Windows.|h>.#incl| |00000520| 75 64 65 20 3c 54 65 78 | 74 45 64 69 74 2e 68 3e |ude <Tex|tEdit.h>| |00000530| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 4d 65 6d 6f 72 |.#includ|e <Memor| |00000540| 79 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 4c |y.h>.#in|clude <L| |00000550| 69 73 74 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ists.h>.|#include| |00000560| 20 3c 4f 53 55 74 69 6c | 73 2e 68 3e 0d 23 69 6e | <OSUtil|s.h>.#in| |00000570| 63 6c 75 64 65 20 3c 53 | 65 67 4c 6f 61 64 2e 68 |clude <S|egLoad.h| |00000580| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 50 61 63 6b |>.#inclu|de <Pack| |00000590| 61 67 65 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ages.h>.|#include| |000005a0| 20 3c 4d 6f 64 61 6c 4c | 69 73 74 2e 68 3e 0d 0d | <ModalL|ist.h>..| |000005b0| 2f 2a 20 48 65 72 65 20 | 61 72 65 20 74 68 65 20 |/* Here |are the | |000005c0| 70 72 6f 74 6f 74 79 70 | 65 73 2e 0d 2a 2f 0d 0d |prototyp|es..*/..| |000005d0| 76 6f 69 64 09 09 09 09 | 49 6e 69 74 69 61 6c 69 |void....|Initiali| |000005e0| 7a 65 28 76 6f 69 64 29 | 3b 0d 0d 42 6f 6f 6c 65 |ze(void)|;..Boole| |000005f0| 61 6e 09 09 09 09 4d 79 | 4c 69 73 74 28 76 6f 69 |an....My|List(voi| |00000600| 64 29 3b 09 09 09 09 09 | 09 09 09 2f 2a 20 4d 6f |d);.....|.../* Mo| |00000610| 64 61 6c 20 44 69 61 6c | 6f 67 20 6c 6f 6f 70 20 |dal Dial|og loop | |00000620| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 76 6f 69 64 09 |*/..pasc|al void.| |00000630| 09 09 4d 79 49 74 65 6d | 28 44 69 61 6c 6f 67 50 |..MyItem|(DialogP| |00000640| 74 72 2c 20 73 68 6f 72 | 74 29 3b 09 09 09 09 09 |tr, shor|t);.....| |00000650| 2f 2a 20 44 69 61 6c 6f | 67 20 4d 61 6e 67 65 72 |/* Dialo|g Manger| |00000660| 20 63 61 6c 6c 20 62 61 | 63 6b 73 20 2a 2f 0d 70 | call ba|cks */.p| |00000670| 61 73 63 61 6c 20 42 6f | 6f 6c 65 61 6e 09 09 4d |ascal Bo|olean..M| |00000680| 79 46 69 6c 74 65 72 28 | 44 69 61 6c 6f 67 50 74 |yFilter(|DialogPt| |00000690| 72 2c 20 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |r, Event|Record *| |000006a0| 2c 20 73 68 6f 72 74 29 | 3b 0d 0d 70 61 73 63 61 |, short)|;..pasca| |000006b0| 6c 20 42 6f 6f 6c 65 61 | 6e 09 09 4d 79 43 6c 69 |l Boolea|n..MyCli| |000006c0| 6b 4c 6f 6f 70 28 29 3b | 20 09 09 09 09 09 09 09 |kLoop();| .......| |000006d0| 09 2f 2a 20 4c 69 73 74 | 20 4d 61 6e 67 65 72 20 |./* List| Manger | |000006e0| 63 61 6c 6c 20 62 61 63 | 6b 73 20 2a 2f 0d 70 61 |call bac|ks */.pa| |000006f0| 73 63 61 6c 20 73 68 6f | 72 74 09 09 4d 79 53 65 |scal sho|rt..MySe| |00000700| 61 72 63 68 28 50 74 72 | 2c 20 50 74 72 2c 20 73 |arch(Ptr|, Ptr, s| |00000710| 68 6f 72 74 2c 20 73 68 | 6f 72 74 29 3b 0d 0d 76 |hort, sh|ort);..v| |00000720| 6f 69 64 09 09 09 09 4c | 44 65 73 65 6c 65 63 74 |oid....L|Deselect| |00000730| 28 4c 69 73 74 48 61 6e | 64 6c 65 29 3b 09 09 09 |(ListHan|dle);...| |00000740| 09 09 09 2f 2a 20 75 74 | 69 6c 69 74 79 20 72 6f |.../* ut|ility ro| |00000750| 75 74 69 6e 65 73 20 2a | 2f 0d 6c 6f 6e 67 09 09 |utines *|/.long..| |00000760| 09 09 43 65 6c 6c 32 53 | 74 72 69 6e 67 28 50 6f |..Cell2S|tring(Po| |00000770| 69 6e 74 2c 20 63 68 61 | 72 20 2a 29 3b 0d 0d 2f |int, cha|r *);../| |00000780| 2a 20 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 69 |* This r|outine i| |00000790| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 4d 50 |s part o|f the MP| |000007a0| 57 20 72 75 6e 74 69 6d | 65 20 6c 69 62 72 61 72 |W runtim|e librar| |000007b0| 79 2e 20 54 68 69 73 20 | 65 78 74 65 72 6e 61 6c |y. This |external| |000007c0| 0d 2a 2a 20 72 65 66 65 | 72 65 6e 63 65 20 74 6f |.** refe|rence to| |000007d0| 20 69 74 20 69 73 20 64 | 6f 6e 65 20 73 6f 20 74 | it is d|one so t| |000007e0| 68 61 74 20 69 74 73 20 | 73 65 67 6d 65 6e 74 20 |hat its |segment | |000007f0| 63 61 6e 20 62 65 20 75 | 6e 6c 6f 61 64 65 64 2c |can be u|nloaded,| |00000800| 20 25 41 35 49 6e 69 74 | 2e 0d 2a 2f 0d 65 78 74 | %A5Init|..*/.ext| |00000810| 65 72 6e 20 76 6f 69 64 | 20 5f 44 61 74 61 49 6e |ern void| _DataIn| |00000820| 69 74 28 29 3b 0d 0d 23 | 70 72 61 67 6d 61 20 73 |it();..#|pragma s| |00000830| 65 67 6d 65 6e 74 20 4d | 61 69 6e 0d 6d 61 69 6e |egment M|ain.main| |00000840| 28 29 0d 7b 0d 09 55 6e | 6c 6f 61 64 53 65 67 28 |().{..Un|loadSeg(| |00000850| 28 50 74 72 29 20 5f 44 | 61 74 61 49 6e 69 74 29 |(Ptr) _D|ataInit)| |00000860| 3b 09 09 2f 2a 20 6e 6f | 74 65 20 74 68 61 74 20 |;../* no|te that | |00000870| 5f 44 61 74 61 49 6e 69 | 74 20 6d 75 73 74 20 6e |_DataIni|t must n| |00000880| 6f 74 20 62 65 20 69 6e | 20 4d 61 69 6e 21 20 2a |ot be in| Main! *| |00000890| 2f 0d 09 0d 09 4d 61 78 | 41 70 70 6c 5a 6f 6e 65 |/....Max|ApplZone| |000008a0| 28 29 3b 09 09 09 09 09 | 2f 2a 20 65 78 70 61 6e |();.....|/* expan| |000008b0| 64 20 74 68 65 20 68 65 | 61 70 20 73 6f 20 63 6f |d the he|ap so co| |000008c0| 64 65 20 73 65 67 6d 65 | 6e 74 73 20 6c 6f 61 64 |de segme|nts load| |000008d0| 20 61 74 20 74 68 65 20 | 74 6f 70 20 2a 2f 0d 0d | at the |top */..| |000008e0| 09 49 6e 69 74 69 61 6c | 69 7a 65 28 29 3b 0d 09 |.Initial|ize();..| |000008f0| 55 6e 6c 6f 61 64 53 65 | 67 28 28 50 74 72 29 20 |UnloadSe|g((Ptr) | |00000900| 49 6e 69 74 69 61 6c 69 | 7a 65 29 3b 09 2f 2a 20 |Initiali|ze);./* | |00000910| 6e 6f 74 65 20 74 68 61 | 74 20 49 6e 69 74 69 61 |note tha|t Initia| |00000920| 6c 69 7a 65 20 6d 75 73 | 74 20 6e 6f 74 20 62 65 |lize mus|t not be| |00000930| 20 69 6e 20 4d 61 69 6e | 21 20 2a 2f 0d 0d 09 28 | in Main|! */...(| |00000940| 76 6f 69 64 29 20 4d 79 | 4c 69 73 74 28 29 3b 09 |void) My|List();.| |00000950| 09 09 09 2f 2a 20 74 68 | 69 73 20 73 61 6d 70 6c |.../* th|is sampl| |00000960| 65 20 69 67 6e 6f 72 65 | 73 20 74 68 65 20 72 65 |e ignore|s the re| |00000970| 74 75 72 6e 20 76 61 6c | 75 65 20 2a 2f 0d 7d 0d |turn val|ue */.}.| |00000980| 0d 0d 23 70 72 61 67 6d | 61 20 73 65 67 6d 65 6e |..#pragm|a segmen| |00000990| 74 20 49 6e 69 74 69 61 | 6c 69 7a 65 0d 76 6f 69 |t Initia|lize.voi| |000009a0| 64 20 49 6e 69 74 69 61 | 6c 69 7a 65 28 29 0d 7b |d Initia|lize().{| |000009b0| 0d 09 61 75 74 6f 09 45 | 76 65 6e 74 52 65 63 6f |..auto.E|ventReco| |000009c0| 72 64 20 65 76 65 6e 74 | 3b 0d 09 61 75 74 6f 09 |rd event|;..auto.| |000009d0| 73 68 6f 72 74 09 09 63 | 6f 75 6e 74 3b 0d 09 61 |short..c|ount;..a| |000009e0| 75 74 6f 09 53 79 73 45 | 6e 76 52 65 63 09 6d 61 |uto.SysE|nvRec.ma| |000009f0| 63 3b 0d 09 0d 09 49 6e | 69 74 47 72 61 66 28 28 |c;....In|itGraf((| |00000a00| 50 74 72 29 20 26 71 64 | 2e 74 68 65 50 6f 72 74 |Ptr) &qd|.thePort| |00000a10| 29 3b 0d 09 49 6e 69 74 | 46 6f 6e 74 73 28 29 3b |);..Init|Fonts();| |00000a20| 0d 09 49 6e 69 74 57 69 | 6e 64 6f 77 73 28 29 3b |..InitWi|ndows();| |00000a30| 0d 09 54 45 49 6e 69 74 | 28 29 3b 0d 09 49 6e 69 |..TEInit|();..Ini| |00000a40| 74 44 69 61 6c 6f 67 73 | 28 6e 69 6c 29 3b 0d 09 |tDialogs|(nil);..| |00000a50| 49 6e 69 74 43 75 72 73 | 6f 72 28 29 3b 0d 09 0d |InitCurs|or();...| |00000a60| 09 66 6f 72 20 28 63 6f | 75 6e 74 20 3d 20 31 3b |.for (co|unt = 1;| |00000a70| 20 63 6f 75 6e 74 20 3c | 3d 20 33 3b 20 63 6f 75 | count <|= 3; cou| |00000a80| 6e 74 2b 2b 29 0d 09 09 | 45 76 65 6e 74 41 76 61 |nt++)...|EventAva| |00000a90| 69 6c 28 65 76 65 72 79 | 45 76 65 6e 74 2c 20 26 |il(every|Event, &| |00000aa0| 65 76 65 6e 74 29 3b 0d | 09 0d 09 2f 2a 20 4d 61 |event);.|.../* Ma| |00000ab0| 6b 65 20 73 75 72 65 20 | 74 68 61 74 20 74 68 65 |ke sure |that the| |00000ac0| 20 6d 61 63 68 69 6e 65 | 20 68 61 73 20 61 74 20 | machine| has at | |00000ad0| 6c 65 61 73 74 20 31 32 | 38 4b 20 52 4f 4d 73 20 |least 12|8K ROMs | |00000ae0| 77 68 69 63 68 20 69 6e | 63 6c 75 64 65 73 20 74 |which in|cludes t| |00000af0| 68 65 20 4c 69 73 74 20 | 4d 61 6e 61 67 65 72 2e |he List |Manager.| |00000b00| 0d 09 2a 2a 20 49 66 20 | 69 74 20 64 6f 65 73 6e |..** If |it doesn| |00000b10| 27 74 2c 20 65 78 69 74 | 2e 0d 09 2a 2f 0d 09 53 |'t, exit|...*/..S| |00000b20| 79 73 45 6e 76 69 72 6f | 6e 73 28 63 53 79 73 45 |ysEnviro|ns(cSysE| |00000b30| 6e 76 69 72 6f 6e 73 56 | 65 72 73 69 6f 6e 2c 20 |nvironsV|ersion, | |00000b40| 26 6d 61 63 29 3b 0d 09 | 69 66 20 28 6d 61 63 2e |&mac);..|if (mac.| |00000b50| 6d 61 63 68 69 6e 65 54 | 79 70 65 20 3c 20 30 29 |machineT|ype < 0)| |00000b60| 0d 09 09 45 78 69 74 54 | 6f 53 68 65 6c 6c 28 29 |...ExitT|oShell()| |00000b70| 3b 0d 7d 0d 0d 2f 2a 20 | 61 20 75 74 69 6c 69 74 |;.}../* |a utilit| |00000b80| 79 20 72 6f 75 74 69 6e | 65 20 74 6f 20 64 65 73 |y routin|e to des| |00000b90| 65 6c 65 63 74 20 61 6c | 6c 20 73 65 6c 65 63 74 |elect al|l select| |00000ba0| 65 64 20 63 65 6c 6c 73 | 20 69 6e 20 74 68 65 20 |ed cells| in the | |00000bb0| 6c 69 73 74 2e 0d 2a 2f | 0d 0d 23 70 72 61 67 6d |list..*/|..#pragm| |00000bc0| 61 20 73 65 67 6d 65 6e | 74 20 4d 61 69 6e 0d 76 |a segmen|t Main.v| |00000bd0| 6f 69 64 20 4c 44 65 73 | 65 6c 65 63 74 28 6c 69 |oid LDes|elect(li| |00000be0| 73 74 29 0d 09 09 09 4c | 69 73 74 48 61 6e 64 6c |st)....L|istHandl| |00000bf0| 65 09 6c 69 73 74 3b 0d | 7b 0d 09 61 75 74 6f 09 |e.list;.|{..auto.| |00000c00| 50 6f 69 6e 74 09 09 63 | 65 6c 6c 3b 0d 09 0d 09 |Point..c|ell;....| |00000c10| 2f 2a 20 73 74 61 72 74 | 20 77 69 74 68 20 74 68 |/* start| with th| |00000c20| 65 20 75 70 70 65 72 20 | 6c 65 66 74 20 63 65 6c |e upper |left cel| |00000c30| 6c 0d 09 2a 2f 0d 09 53 | 65 74 50 74 28 26 63 65 |l..*/..S|etPt(&ce| |00000c40| 6c 6c 2c 20 30 2c 20 30 | 29 3b 0d 09 0d 09 2f 2a |ll, 0, 0|);..../*| |00000c50| 20 66 6f 72 20 65 61 63 | 68 20 73 65 6c 65 63 74 | for eac|h select| |00000c60| 65 64 20 63 65 6c 6c 0d | 09 2a 2f 0d 09 77 68 69 |ed cell.|.*/..whi| |00000c70| 6c 65 28 4c 47 65 74 53 | 65 6c 65 63 74 28 74 72 |le(LGetS|elect(tr| |00000c80| 75 65 2c 20 26 63 65 6c | 6c 2c 20 6c 69 73 74 29 |ue, &cel|l, list)| |00000c90| 29 0d 09 09 0d 09 09 2f | 2a 20 64 65 73 65 6c 65 |)....../|* desele| |00000ca0| 63 74 20 61 6e 64 20 75 | 6e 68 69 6c 69 74 65 20 |ct and u|nhilite | |00000cb0| 69 74 0d 09 09 2a 2f 0d | 09 09 4c 53 65 74 53 65 |it...*/.|..LSetSe| |00000cc0| 6c 65 63 74 28 66 61 6c | 73 65 2c 20 63 65 6c 6c |lect(fal|se, cell| |00000cd0| 2c 20 6c 69 73 74 29 3b | 0d 7d 0d 0d 2f 2a 20 61 |, list);|.}../* a| |00000ce0| 20 63 6c 69 63 6b 20 6c | 6f 6f 70 20 70 72 6f 63 | click l|oop proc| |00000cf0| 65 64 75 72 65 20 74 68 | 61 74 20 64 6f 65 73 20 |edure th|at does | |00000d00| 6e 6f 74 68 69 6e 67 20 | 62 75 74 20 70 72 6f 76 |nothing |but prov| |00000d10| 65 20 69 74 20 63 61 6e | 20 62 65 20 64 6f 6e 65 |e it can| be done| |00000d20| 2e 0d 2a 2f 0d 0d 23 70 | 72 61 67 6d 61 20 73 65 |..*/..#p|ragma se| |00000d30| 67 6d 65 6e 74 20 4d 61 | 69 6e 0d 70 61 73 63 61 |gment Ma|in.pasca| |00000d40| 6c 20 42 6f 6f 6c 65 61 | 6e 20 4d 79 43 6c 69 6b |l Boolea|n MyClik| |00000d50| 4c 6f 6f 70 28 29 0d 7b | 0d 09 72 65 74 75 72 6e |Loop().{|..return| |00000d60| 20 74 72 75 65 3b 0d 7d | 0d 0d 2f 2a 20 61 20 63 | true;.}|../* a c| |00000d70| 75 73 74 6f 6d 20 73 65 | 61 72 63 68 20 70 72 6f |ustom se|arch pro| |00000d80| 63 65 64 75 72 65 20 74 | 68 61 74 20 69 73 20 63 |cedure t|hat is c| |00000d90| 61 73 65 20 73 65 6e 73 | 69 74 69 76 65 2e 20 74 |ase sens|itive. t| |00000da0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 6c 69 73 74 |he stand|ard list| |00000db0| 20 73 65 61 72 63 68 20 | 70 72 6f 63 65 64 75 72 | search |procedur| |00000dc0| 65 0d 2a 2a 20 75 73 65 | 73 20 49 55 4d 61 67 49 |e.** use|s IUMagI| |00000dd0| 44 53 74 72 69 6e 67 20 | 77 68 69 63 68 20 69 73 |DString |which is| |00000de0| 20 63 61 73 65 20 69 6e | 73 65 6e 73 69 74 69 76 | case in|sensitiv| |00000df0| 65 2e 0d 2a 2f 0d 0d 23 | 70 72 61 67 6d 61 20 73 |e..*/..#|pragma s| |00000e00| 65 67 6d 65 6e 74 20 4d | 61 69 6e 0d 70 61 73 63 |egment M|ain.pasc| |00000e10| 61 6c 20 73 68 6f 72 74 | 20 4d 79 53 65 61 72 63 |al short| MySearc| |00000e20| 68 28 61 50 74 72 2c 20 | 62 50 74 72 2c 20 61 4c |h(aPtr, |bPtr, aL| |00000e30| 65 6e 2c 20 62 4c 65 6e | 29 0d 09 09 09 50 74 72 |en, bLen|)....Ptr| |00000e40| 09 09 09 61 50 74 72 3b | 09 09 2f 2a 20 74 68 65 |...aPtr;|../* the| |00000e50| 20 63 65 6c 6c 20 64 61 | 74 61 20 2a 2f 0d 09 09 | cell da|ta */...| |00000e60| 09 50 74 72 09 09 09 62 | 50 74 72 3b 09 09 2f 2a |.Ptr...b|Ptr;../*| |00000e70| 20 74 68 65 20 73 65 61 | 72 63 68 20 70 61 74 74 | the sea|rch patt| |00000e80| 65 72 6e 20 2a 2f 0d 09 | 09 09 73 68 6f 72 74 09 |ern */..|..short.| |00000e90| 09 61 4c 65 6e 3b 09 09 | 2f 2a 20 74 68 65 20 6c |.aLen;..|/* the l| |00000ea0| 65 6e 67 74 68 73 20 2a | 2f 0d 09 09 09 73 68 6f |engths *|/....sho| |00000eb0| 72 74 09 09 62 4c 65 6e | 3b 0d 7b 0d 09 72 65 74 |rt..bLen|;.{..ret| |00000ec0| 75 72 6e 20 28 30 20 21 | 3d 20 49 55 4d 61 67 53 |urn (0 !|= IUMagS| |00000ed0| 74 72 69 6e 67 28 61 50 | 74 72 2c 20 62 50 74 72 |tring(aP|tr, bPtr| |00000ee0| 2c 20 61 4c 65 6e 2c 20 | 62 4c 65 6e 29 29 3b 0d |, aLen, |bLen));.| |00000ef0| 7d 0d 0d 2f 2a 20 74 68 | 69 73 20 72 6f 75 74 69 |}../* th|is routi| |00000f00| 6e 65 20 77 69 6c 6c 20 | 62 65 20 63 61 6c 6c 65 |ne will |be calle| |00000f10| 64 20 62 79 20 74 68 65 | 20 44 69 61 6c 6f 67 20 |d by the| Dialog | |00000f20| 4d 61 6e 61 67 65 72 20 | 74 6f 20 64 72 61 77 20 |Manager |to draw | |00000f30| 74 68 65 20 6f 75 74 6c | 69 6e 65 20 6f 66 20 74 |the outl|ine of t| |00000f40| 68 65 0d 2a 2a 20 64 65 | 66 61 75 6c 74 20 62 75 |he.** de|fault bu| |00000f50| 74 74 6f 6e 20 61 6e 64 | 20 74 68 65 20 6c 69 73 |tton and| the lis| |00000f60| 74 2e 20 0d 2a 2f 0d 0d | 23 70 72 61 67 6d 61 20 |t. .*/..|#pragma | |00000f70| 73 65 67 6d 65 6e 74 20 | 4d 61 69 6e 0d 70 61 73 |segment |Main.pas| |00000f80| 63 61 6c 20 76 6f 69 64 | 20 4d 79 49 74 65 6d 28 |cal void| MyItem(| |00000f90| 64 69 61 6c 6f 67 2c 20 | 69 74 65 6d 4e 6f 29 0d |dialog, |itemNo).| |00000fa0| 09 09 09 44 69 61 6c 6f | 67 50 74 72 09 64 69 61 |...Dialo|gPtr.dia| |00000fb0| 6c 6f 67 3b 0d 09 09 09 | 73 68 6f 72 74 09 09 69 |log;....|short..i| |00000fc0| 74 65 6d 4e 6f 3b 0d 7b | 0d 09 61 75 74 6f 09 73 |temNo;.{|..auto.s| |00000fd0| 68 6f 72 74 09 09 69 74 | 65 6d 54 79 70 65 3b 0d |hort..it|emType;.| |00000fe0| 09 61 75 74 6f 09 48 61 | 6e 64 6c 65 09 09 69 74 |.auto.Ha|ndle..it| |00000ff0| 65 6d 48 61 6e 64 6c 65 | 3b 0d 09 61 75 74 6f 09 |emHandle|;..auto.| |00001000| 52 65 63 74 09 09 69 74 | 65 6d 52 65 63 74 3b 0d |Rect..it|emRect;.| |00001010| 09 0d 09 61 75 74 6f 09 | 4c 69 73 74 48 61 6e 64 |...auto.|ListHand| |00001020| 6c 65 09 6c 69 73 74 3b | 0d 09 0d 09 47 65 74 44 |le.list;|....GetD| |00001030| 49 74 65 6d 28 64 69 61 | 6c 6f 67 2c 20 69 74 65 |Item(dia|log, ite| |00001040| 6d 4e 6f 2c 20 26 69 74 | 65 6d 54 79 70 65 2c 20 |mNo, &it|emType, | |00001050| 26 69 74 65 6d 48 61 6e | 64 6c 65 2c 20 26 69 74 |&itemHan|dle, &it| |00001060| 65 6d 52 65 63 74 29 3b | 0d 09 73 77 69 74 63 68 |emRect);|..switch| |00001070| 28 69 74 65 6d 4e 6f 29 | 20 7b 0d 09 0d 09 2f 2a |(itemNo)| {..../*| |00001080| 20 6f 75 74 6c 69 6e 65 | 20 74 68 65 20 64 65 66 | outline| the def| |00001090| 61 75 6c 74 20 62 75 74 | 74 6f 6e 20 28 73 65 65 |ault but|ton (see| |000010a0| 20 49 4d 20 49 2d 34 30 | 37 29 2e 20 20 69 6e 20 | IM I-40|7). in | |000010b0| 74 68 69 73 20 63 61 73 | 65 20 69 74 20 69 73 20 |this cas|e it is | |000010c0| 74 68 65 20 4f 4b 20 62 | 75 74 74 6f 6e 2e 0d 09 |the OK b|utton...| |000010d0| 2a 2a 20 74 68 69 73 20 | 6c 65 74 73 20 74 68 65 |** this |lets the| |000010e0| 20 75 73 65 72 20 6b 6e | 6f 77 20 74 68 61 74 20 | user kn|ow that | |000010f0| 70 72 65 73 73 69 6e 67 | 20 74 68 65 20 72 65 74 |pressing| the ret| |00001100| 75 72 6e 20 77 69 6c 6c | 20 68 61 76 65 20 74 68 |urn will| have th| |00001110| 65 20 73 61 6d 65 20 65 | 66 66 65 63 74 20 61 73 |e same e|ffect as| |00001120| 20 0d 09 2a 2a 20 63 6c | 69 63 6b 69 6e 67 20 74 | ..** cl|icking t| |00001130| 68 69 73 20 62 75 74 74 | 6f 6e 2e 0d 09 2a 2f 0d |his butt|on...*/.| |00001140| 09 63 61 73 65 20 63 4f | 4b 4f 75 74 6c 69 6e 65 |.case cO|KOutline| |00001150| 49 74 65 6d 20 3a 0d 09 | 09 50 65 6e 53 69 7a 65 |Item :..|.PenSize| |00001160| 28 33 2c 20 33 29 3b 0d | 09 09 49 6e 73 65 74 52 |(3, 3);.|..InsetR| |00001170| 65 63 74 28 26 69 74 65 | 6d 52 65 63 74 2c 20 2d |ect(&ite|mRect, -| |00001180| 34 2c 20 2d 34 29 3b 0d | 09 09 46 72 61 6d 65 52 |4, -4);.|..FrameR| |00001190| 6f 75 6e 64 52 65 63 74 | 28 26 69 74 65 6d 52 65 |oundRect|(&itemRe| |000011a0| 63 74 2c 20 31 36 2c 20 | 31 36 29 3b 0d 09 09 50 |ct, 16, |16);...P| |000011b0| 65 6e 53 69 7a 65 28 31 | 2c 20 31 29 3b 0d 09 09 |enSize(1|, 1);...| |000011c0| 62 72 65 61 6b 3b 0d 09 | 0d 09 2f 2a 20 64 72 61 |break;..|../* dra| |000011d0| 77 20 74 68 65 20 6c 69 | 73 74 2e 20 74 68 65 20 |w the li|st. the | |000011e0| 4c 69 73 74 20 4d 61 6e | 61 67 65 72 20 77 69 6c |List Man|ager wil| |000011f0| 6c 20 64 72 61 77 20 74 | 68 65 20 63 65 6c 6c 73 |l draw t|he cells| |00001200| 20 61 6e 64 20 73 63 72 | 6f 6c 6c 62 61 72 73 20 | and scr|ollbars | |00001210| 62 75 74 20 64 6f 65 73 | 20 6e 6f 74 0d 09 2a 2a |but does| not..**| |00001220| 20 64 72 61 77 20 61 20 | 62 6f 72 64 65 72 20 61 | draw a |border a| |00001230| 72 6f 75 6e 64 20 74 68 | 65 20 6c 69 73 74 27 73 |round th|e list's| |00001240| 20 76 69 65 77 20 72 65 | 63 74 61 6e 67 6c 65 2c | view re|ctangle,| |00001250| 20 73 6f 20 69 74 20 69 | 73 20 64 6f 6e 65 20 68 | so it i|s done h| |00001260| 65 72 65 20 61 6c 73 6f | 2e 0d 09 2a 2f 0d 09 63 |ere also|...*/..c| |00001270| 61 73 65 20 63 4c 69 73 | 74 49 74 65 6d 20 3a 0d |ase cLis|tItem :.| |00001280| 0d 09 09 2f 2a 20 72 65 | 63 6f 76 65 72 20 74 68 |.../* re|cover th| |00001290| 65 20 6c 69 73 74 20 68 | 61 6e 64 6c 65 2e 20 69 |e list h|andle. i| |000012a0| 74 20 77 61 73 20 73 74 | 75 66 66 65 64 20 69 6e |t was st|uffed in| |000012b0| 74 6f 20 74 68 65 20 64 | 69 61 6c 6f 67 20 77 69 |to the d|ialog wi| |000012c0| 6e 64 6f 77 27 73 20 72 | 65 66 43 6f 6e 0d 09 09 |ndow's r|efCon...| |000012d0| 2a 2a 20 66 69 65 6c 64 | 20 77 68 65 6e 20 69 73 |** field| when is| |000012e0| 20 77 61 73 20 63 72 65 | 61 74 65 64 2e 0d 09 09 | was cre|ated....| |000012f0| 2a 2f 0d 09 09 6c 69 73 | 74 20 3d 20 28 4c 69 73 |*/...lis|t = (Lis| |00001300| 74 48 61 6e 64 6c 65 29 | 20 28 28 44 69 61 6c 6f |tHandle)| ((Dialo| |00001310| 67 50 65 65 6b 29 64 69 | 61 6c 6f 67 29 2d 3e 77 |gPeek)di|alog)->w| |00001320| 69 6e 64 6f 77 2e 72 65 | 66 43 6f 6e 3b 0d 09 09 |indow.re|fCon;...| |00001330| 0d 09 09 2f 2a 20 6c 65 | 74 20 74 68 65 20 4c 69 |.../* le|t the Li| |00001340| 73 74 20 4d 61 6e 61 67 | 65 72 20 64 72 61 77 20 |st Manag|er draw | |00001350| 74 68 65 20 6c 69 73 74 | 0d 09 09 2a 2f 0d 09 09 |the list|...*/...| |00001360| 4c 55 70 64 61 74 65 28 | 64 69 61 6c 6f 67 2d 3e |LUpdate(|dialog->| |00001370| 76 69 73 52 67 6e 2c 20 | 6c 69 73 74 29 3b 0d 0d |visRgn, |list);..| |00001380| 09 09 2f 2a 20 64 72 61 | 77 6e 20 74 68 65 20 6c |../* dra|wn the l| |00001390| 69 73 74 73 20 66 72 61 | 6d 69 6e 67 20 72 65 63 |ists fra|ming rec| |000013a0| 74 61 6e 67 6c 65 20 4f | 55 54 53 49 44 45 20 74 |tangle O|UTSIDE t| |000013b0| 68 65 20 76 69 65 77 20 | 72 65 63 74 61 6e 67 6c |he view |rectangl| |000013c0| 65 2e 0d 09 09 2a 2a 20 | 69 66 20 74 68 65 20 66 |e....** |if the f| |000013d0| 72 61 6d 65 20 69 73 20 | 64 72 61 77 6e 20 69 6e |rame is |drawn in| |000013e0| 73 69 64 65 20 74 68 65 | 20 76 69 65 77 20 72 65 |side the| view re| |000013f0| 63 74 61 6e 67 6c 65 20 | 74 68 65 6e 20 74 68 65 |ctangle |then the| |00001400| 73 65 20 6c 69 6e 65 73 | 0d 09 09 2a 2a 20 77 69 |se lines|...** wi| |00001410| 6c 6c 20 62 65 20 65 72 | 61 73 65 64 2c 20 64 72 |ll be er|ased, dr| |00001420| 61 77 6e 20 6f 6e 74 6f | 20 6f 72 20 73 63 72 6f |awn onto| or scro| |00001430| 6c 6c 65 64 20 62 79 20 | 74 68 65 20 4c 69 73 74 |lled by |the List| |00001440| 20 4d 61 6e 61 67 65 72 | 20 73 69 6e 63 65 20 74 | Manager| since t| |00001450| 68 65 20 6c 69 6e 65 73 | 0d 09 09 2a 2a 20 61 72 |he lines|...** ar| |00001460| 65 20 77 69 74 68 69 6e | 20 74 68 65 20 72 65 63 |e within| the rec| |00001470| 74 61 6e 67 6c 65 20 4c | 4d 20 65 78 70 65 63 74 |tangle L|M expect| |00001480| 73 20 74 6f 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |s to be |able to | |00001490| 64 72 61 77 20 69 6e 2e | 0d 09 09 2a 2f 0d 09 09 |draw in.|...*/...| |000014a0| 49 6e 73 65 74 52 65 63 | 74 28 26 69 74 65 6d 52 |InsetRec|t(&itemR| |000014b0| 65 63 74 2c 20 2d 31 2c | 20 2d 31 29 3b 0d 09 09 |ect, -1,| -1);...| |000014c0| 46 72 61 6d 65 52 65 63 | 74 28 26 69 74 65 6d 52 |FrameRec|t(&itemR| |000014d0| 65 63 74 29 3b 0d 09 09 | 62 72 65 61 6b 3b 0d 09 |ect);...|break;..| |000014e0| 7d 0d 7d 0d 0d 2f 2a 20 | 77 65 20 6e 65 65 64 20 |}.}../* |we need | |000014f0| 74 6f 20 62 65 20 61 62 | 6c 65 20 74 6f 20 70 72 |to be ab|le to pr| |00001500| 6f 63 65 73 73 20 6d 6f | 75 73 65 20 63 6c 69 63 |ocess mo|use clic| |00001510| 6b 73 20 69 6e 20 74 68 | 65 20 6c 69 73 74 2e 20 |ks in th|e list. | |00001520| 74 68 65 20 44 69 61 6c | 6f 67 20 4d 61 6e 61 67 |the Dial|og Manag| |00001530| 65 72 20 6d 61 6b 65 73 | 20 74 68 69 73 20 0d 2a |er makes| this .*| |00001540| 2a 20 70 6f 73 73 69 62 | 6c 65 20 74 68 72 6f 75 |* possib|le throu| |00001550| 67 68 20 66 69 6c 74 65 | 72 20 70 72 6f 63 65 64 |gh filte|r proced| |00001560| 75 72 65 73 20 6c 69 6b | 65 20 74 68 69 73 20 6f |ures lik|e this o| |00001570| 6e 65 2e 20 73 69 6e 63 | 65 20 74 68 65 20 64 65 |ne. sinc|e the de| |00001580| 66 61 75 6c 74 20 66 69 | 6c 74 65 72 20 70 72 6f |fault fi|lter pro| |00001590| 63 65 64 75 72 65 0d 2a | 2a 20 77 69 6c 6c 20 62 |cedure.*|* will b| |000015a0| 65 20 72 65 70 6c 61 63 | 65 64 20 77 65 20 61 6c |e replac|ed we al| |000015b0| 73 6f 20 6e 65 65 64 20 | 74 6f 20 68 61 6e 64 6c |so need |to handl| |000015c0| 65 20 72 65 74 75 72 6e | 20 6b 65 79 20 70 72 65 |e return| key pre| |000015d0| 73 73 65 73 2e 0d 2a 2f | 0d 0d 23 70 72 61 67 6d |sses..*/|..#pragm| |000015e0| 61 20 73 65 67 6d 65 6e | 74 20 4d 61 69 6e 0d 70 |a segmen|t Main.p| |000015f0| 61 73 63 61 6c 20 42 6f | 6f 6c 65 61 6e 20 4d 79 |ascal Bo|olean My| |00001600| 46 69 6c 74 65 72 28 64 | 69 61 6c 6f 67 2c 20 65 |Filter(d|ialog, e| |00001610| 76 65 6e 74 2c 20 69 74 | 65 6d 48 69 74 29 0d 09 |vent, it|emHit)..| |00001620| 09 09 44 69 61 6c 6f 67 | 50 74 72 09 64 69 61 6c |..Dialog|Ptr.dial| |00001630| 6f 67 3b 0d 09 09 09 45 | 76 65 6e 74 52 65 63 6f |og;....E|ventReco| |00001640| 72 64 09 2a 65 76 65 6e | 74 3b 0d 09 09 09 73 68 |rd.*even|t;....sh| |00001650| 6f 72 74 09 09 2a 69 74 | 65 6d 48 69 74 3b 0d 7b |ort..*it|emHit;.{| |00001660| 0d 09 61 75 74 6f 09 4c | 69 73 74 48 61 6e 64 6c |..auto.L|istHandl| |00001670| 65 09 6c 69 73 74 3b 0d | 09 61 75 74 6f 09 50 6f |e.list;.|.auto.Po| |00001680| 69 6e 74 09 09 63 65 6c | 6c 3b 0d 09 61 75 74 6f |int..cel|l;..auto| |00001690| 09 63 68 61 72 09 09 63 | 68 61 72 61 63 74 65 72 |.char..c|haracter| |000016a0| 3b 0d 09 61 75 74 6f 09 | 50 6f 69 6e 74 09 09 77 |;..auto.|Point..w| |000016b0| 68 65 72 65 3b 0d 09 61 | 75 74 6f 09 52 65 63 74 |here;..a|uto.Rect| |000016c0| 09 09 69 74 65 6d 52 65 | 63 74 3b 0d 09 61 75 74 |..itemRe|ct;..aut| |000016d0| 6f 09 73 68 6f 72 74 09 | 09 69 74 65 6d 54 79 70 |o.short.|.itemTyp| |000016e0| 65 3b 0d 09 61 75 74 6f | 09 48 61 6e 64 6c 65 09 |e;..auto|.Handle.| |000016f0| 09 69 74 65 6d 48 61 6e | 64 6c 65 3b 0d 09 61 75 |.itemHan|dle;..au| |00001700| 74 6f 09 53 74 72 32 35 | 35 09 09 73 74 72 69 6e |to.Str25|5..strin| |00001710| 67 3b 0d 09 61 75 74 6f | 09 73 68 6f 72 74 09 09 |g;..auto|.short..| |00001720| 6c 65 6e 67 74 68 3b 0d | 0d 09 73 77 69 74 63 68 |length;.|..switch| |00001730| 20 28 65 76 65 6e 74 2d | 3e 77 68 61 74 29 20 7b | (event-|>what) {| |00001740| 0d 09 0d 09 2f 2a 20 77 | 61 74 63 68 20 66 6f 72 |..../* w|atch for| |00001750| 20 6d 6f 75 73 65 20 63 | 6c 69 63 6b 73 20 69 6e | mouse c|licks in| |00001760| 20 74 68 65 20 4c 69 73 | 74 0d 09 2a 2f 0d 09 63 | the Lis|t..*/..c| |00001770| 61 73 65 20 6d 6f 75 73 | 65 44 6f 77 6e 20 3a 0d |ase mous|eDown :.| |00001780| 09 09 47 65 74 44 49 74 | 65 6d 28 64 69 61 6c 6f |..GetDIt|em(dialo| |00001790| 67 2c 20 63 4c 69 73 74 | 49 74 65 6d 2c 20 26 69 |g, cList|Item, &i| |000017a0| 74 65 6d 54 79 70 65 2c | 20 26 69 74 65 6d 48 61 |temType,| &itemHa| |000017b0| 6e 64 6c 65 2c 20 26 69 | 74 65 6d 52 65 63 74 29 |ndle, &i|temRect)| |000017c0| 3b 0d 09 09 77 68 65 72 | 65 20 3d 20 65 76 65 6e |;...wher|e = even| |000017d0| 74 2d 3e 77 68 65 72 65 | 3b 0d 09 09 47 6c 6f 62 |t->where|;...Glob| |000017e0| 61 6c 54 6f 4c 6f 63 61 | 6c 28 26 77 68 65 72 65 |alToLoca|l(&where| |000017f0| 29 3b 0d 09 09 0d 09 09 | 2f 2a 20 69 66 20 74 68 |);......|/* if th| |00001800| 65 20 75 73 65 72 20 68 | 61 73 20 63 6c 69 63 6b |e user h|as click| |00001810| 65 64 20 69 6e 20 74 68 | 65 20 6c 69 73 74 20 74 |ed in th|e list t| |00001820| 68 65 6e 20 77 65 27 6c | 6c 20 68 61 6e 64 6c 65 |hen we'l|l handle| |00001830| 20 74 68 65 20 70 72 6f | 63 65 73 73 69 6e 67 20 | the pro|cessing | |00001840| 68 65 72 65 0d 09 09 2a | 2f 0d 09 09 69 66 20 28 |here...*|/...if (| |00001850| 50 74 49 6e 52 65 63 74 | 28 77 68 65 72 65 2c 20 |PtInRect|(where, | |00001860| 26 69 74 65 6d 52 65 63 | 74 29 29 20 7b 0d 09 09 |&itemRec|t)) {...| |00001870| 0d 09 09 09 2f 2a 20 72 | 65 63 6f 76 65 72 20 74 |..../* r|ecover t| |00001880| 68 65 20 6c 69 73 74 20 | 68 61 6e 64 6c 65 2e 20 |he list |handle. | |00001890| 69 74 20 77 61 73 20 73 | 74 75 66 66 65 64 20 69 |it was s|tuffed i| |000018a0| 6e 74 6f 20 74 68 65 20 | 64 69 61 6c 6f 67 20 77 |nto the |dialog w| |000018b0| 69 6e 64 6f 77 27 73 20 | 72 65 66 43 6f 6e 0d 09 |indow's |refCon..| |000018c0| 09 09 2a 2a 20 66 69 65 | 6c 64 20 77 68 65 6e 20 |..** fie|ld when | |000018d0| 69 74 20 77 61 73 20 63 | 72 65 61 74 65 64 2e 0d |it was c|reated..| |000018e0| 09 09 09 2a 2f 0d 09 09 | 09 6c 69 73 74 20 3d 20 |...*/...|.list = | |000018f0| 28 4c 69 73 74 48 61 6e | 64 6c 65 29 20 28 28 44 |(ListHan|dle) ((D| |00001900| 69 61 6c 6f 67 50 65 65 | 6b 29 64 69 61 6c 6f 67 |ialogPee|k)dialog| |00001910| 29 2d 3e 77 69 6e 64 6f | 77 2e 72 65 66 43 6f 6e |)->windo|w.refCon| |00001920| 3b 0d 09 09 09 0d 09 09 | 09 2f 2a 20 6c 65 74 20 |;.......|./* let | |00001930| 74 68 65 20 4c 69 73 74 | 20 4d 61 6e 61 67 65 72 |the List| Manager| |00001940| 20 70 72 6f 63 65 73 73 | 20 74 68 65 20 6d 6f 75 | process| the mou| |00001950| 73 65 20 64 6f 77 6e 2e | 20 74 68 69 73 20 69 6e |se down.| this in| |00001960| 63 6c 75 64 65 73 20 63 | 65 6c 6c 20 73 65 6c 65 |cludes c|ell sele| |00001970| 63 74 69 6f 6e 0d 09 09 | 09 2a 2a 20 64 72 61 67 |ction...|.** drag| |00001980| 67 69 6e 67 2c 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |ging, sc|rolling | |00001990| 61 6e 64 20 64 6f 75 62 | 6c 65 20 63 6c 69 63 6b |and doub|le click| |000019a0| 73 20 62 79 20 74 68 65 | 20 75 73 65 72 2e 0d 09 |s by the| user...| |000019b0| 09 09 2a 2f 0d 09 09 09 | 69 66 20 28 4c 43 6c 69 |..*/....|if (LCli| |000019c0| 63 6b 28 77 68 65 72 65 | 2c 20 65 76 65 6e 74 2d |ck(where|, event-| |000019d0| 3e 6d 6f 64 69 66 69 65 | 72 73 2c 20 6c 69 73 74 |>modifie|rs, list| |000019e0| 29 29 20 7b 0d 09 09 09 | 0d 09 09 09 09 2f 2a 20 |)) {....|...../* | |000019f0| 61 20 64 6f 75 62 6c 65 | 20 63 6c 69 63 6b 20 69 |a double| click i| |00001a00| 6e 20 61 20 63 65 6c 6c | 20 68 61 73 20 6f 63 63 |n a cell| has occ| |00001a10| 75 72 65 64 2e 0d 09 09 | 09 09 2a 2a 20 66 69 6e |ured....|..** fin| |00001a20| 64 20 6f 75 74 20 69 6e | 20 77 68 69 63 68 20 6f |d out in| which o| |00001a30| 6e 65 20 6f 66 20 74 68 | 65 20 63 65 6c 6c 73 20 |ne of th|e cells | |00001a40| 74 68 65 20 75 73 65 72 | 20 68 61 73 20 64 6f 75 |the user| has dou| |00001a50| 62 6c 65 20 63 6c 69 63 | 6b 65 64 20 69 6e 2e 0d |ble clic|ked in..| |00001a60| 09 09 09 09 2a 2f 0d 09 | 09 09 09 63 65 6c 6c 20 |....*/..|...cell | |00001a70| 3d 20 4c 4c 61 73 74 43 | 6c 69 63 6b 28 6c 69 73 |= LLastC|lick(lis| |00001a80| 74 29 3b 0d 09 09 09 09 | 0d 09 09 09 09 2f 2a 20 |t);.....|...../* | |00001a90| 63 6f 70 79 20 74 68 69 | 73 20 63 65 6c 6c 27 73 |copy thi|s cell's| |00001aa0| 20 63 6f 6e 74 65 6e 74 | 73 20 74 6f 20 74 68 65 | content|s to the| |00001ab0| 20 74 65 78 74 20 65 64 | 69 74 20 62 6f 78 20 69 | text ed|it box i| |00001ac0| 6e 20 74 68 65 20 64 69 | 61 6c 6f 67 0d 09 09 09 |n the di|alog....| |00001ad0| 09 2a 2f 0d 09 09 09 09 | 47 65 74 44 49 74 65 6d |.*/.....|GetDItem| |00001ae0| 28 64 69 61 6c 6f 67 2c | 20 63 54 65 78 74 49 74 |(dialog,| cTextIt| |00001af0| 65 6d 2c 20 26 69 74 65 | 6d 54 79 70 65 2c 20 26 |em, &ite|mType, &| |00001b00| 69 74 65 6d 48 61 6e 64 | 6c 65 2c 20 26 69 74 65 |itemHand|le, &ite| |00001b10| 6d 52 65 63 74 29 3b 0d | 09 09 09 09 6c 65 6e 67 |mRect);.|....leng| |00001b20| 74 68 20 3d 20 32 35 35 | 3b 0d 09 09 09 09 4c 47 |th = 255|;.....LG| |00001b30| 65 74 43 65 6c 6c 28 26 | 73 74 72 69 6e 67 5b 31 |etCell(&|string[1| |00001b40| 5d 2c 20 26 6c 65 6e 67 | 74 68 2c 20 63 65 6c 6c |], &leng|th, cell| |00001b50| 2c 20 6c 69 73 74 29 3b | 0d 09 09 09 09 73 74 72 |, list);|.....str| |00001b60| 69 6e 67 5b 30 5d 20 3d | 20 28 63 68 61 72 29 20 |ing[0] =| (char) | |00001b70| 6c 65 6e 67 74 68 3b 0d | 09 09 09 09 53 65 74 49 |length;.|....SetI| |00001b80| 54 65 78 74 28 69 74 65 | 6d 48 61 6e 64 6c 65 2c |Text(ite|mHandle,| |00001b90| 20 73 74 72 69 6e 67 29 | 3b 0d 09 09 09 7d 0d 09 | string)|;....}..| |00001ba0| 09 09 0d 09 09 09 2f 2a | 20 74 65 6c 6c 20 74 68 |....../*| tell th| |00001bb0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 68 |e applic|ation th| |00001bc0| 61 74 20 74 68 65 20 6c | 69 73 74 20 68 61 73 20 |at the l|ist has | |00001bd0| 62 65 65 6e 20 63 6c 69 | 63 6b 65 64 20 69 6e 2e |been cli|cked in.| |00001be0| 0d 09 09 09 2a 2f 0d 09 | 09 09 2a 69 74 65 6d 48 |....*/..|..*itemH| |00001bf0| 69 74 20 3d 20 63 4c 69 | 73 74 49 74 65 6d 3b 0d |it = cLi|stItem;.| |00001c00| 09 09 09 0d 09 09 09 2f | 2a 20 74 65 6c 6c 20 74 |......./|* tell t| |00001c10| 68 65 20 44 69 61 6c 6f | 67 20 4d 61 6e 61 67 65 |he Dialo|g Manage| |00001c20| 72 20 74 68 61 74 20 74 | 68 65 20 65 76 65 6e 74 |r that t|he event| |00001c30| 20 68 61 73 20 62 65 65 | 6e 20 68 61 6e 64 6c 65 | has bee|n handle| |00001c40| 64 2e 0d 09 09 09 2a 2f | 0d 09 09 09 72 65 74 75 |d.....*/|....retu| |00001c50| 72 6e 20 74 72 75 65 3b | 0d 09 09 7d 0d 09 09 62 |rn true;|...}...b| |00001c60| 72 65 61 6b 3b 0d 09 0d | 09 2f 2a 20 62 65 20 73 |reak;...|./* be s| |00001c70| 75 72 65 20 61 6e 64 20 | 72 65 74 75 72 6e 20 74 |ure and |return t| |00001c80| 68 69 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |his info|rmation | |00001c90| 73 6f 20 74 68 65 20 44 | 69 61 6c 6f 67 20 4d 61 |so the D|ialog Ma| |00001ca0| 6e 61 67 65 72 20 77 69 | 6c 6c 20 70 72 6f 63 65 |nager wi|ll proce| |00001cb0| 73 73 20 74 68 65 20 0d | 09 2a 2a 20 72 65 74 75 |ss the .|.** retu| |00001cc0| 72 6e 20 61 6e 64 20 65 | 6e 74 65 72 20 6b 65 79 |rn and e|nter key| |00001cd0| 20 70 72 65 73 73 65 73 | 20 61 73 20 63 6c 69 63 | presses| as clic| |00001ce0| 6b 73 20 62 79 20 74 68 | 65 20 75 73 65 72 20 69 |ks by th|e user i| |00001cf0| 6e 20 74 68 65 20 4f 4b | 20 62 75 74 74 6f 6e 2e |n the OK| button.| |00001d00| 20 74 68 69 73 20 69 73 | 0d 09 2a 2a 20 6f 6e 6c | this is|..** onl| |00001d10| 79 20 72 65 71 75 69 72 | 65 64 20 62 65 63 61 75 |y requir|ed becau| |00001d20| 73 65 20 77 65 20 68 61 | 76 65 20 6f 76 65 72 72 |se we ha|ve overr| |00001d30| 69 64 64 65 6e 20 74 68 | 65 20 44 69 61 6c 6f 67 |idden th|e Dialog| |00001d40| 20 4d 61 6e 61 67 65 72 | 27 73 20 64 65 66 61 75 | Manager|'s defau| |00001d50| 6c 74 20 66 69 6c 74 65 | 72 69 6e 67 2e 0d 09 2a |lt filte|ring...*| |00001d60| 2f 0d 09 63 61 73 65 20 | 6b 65 79 44 6f 77 6e 20 |/..case |keyDown | |00001d70| 3a 09 0d 09 63 61 73 65 | 20 61 75 74 6f 4b 65 79 |:...case| autoKey| |00001d80| 20 3a 0d 09 09 63 68 61 | 72 61 63 74 65 72 20 3d | :...cha|racter =| |00001d90| 20 65 76 65 6e 74 2d 3e | 6d 65 73 73 61 67 65 3b | event->|message;| |00001da0| 0d 09 09 69 66 20 28 27 | 5c 6e 27 20 3d 3d 20 63 |...if ('|\n' == c| |00001db0| 68 61 72 61 63 74 65 72 | 29 20 7b 0d 0d 09 09 09 |haracter|) {.....| |00001dc0| 2f 2a 20 74 65 6c 6c 20 | 74 68 65 20 61 70 70 6c |/* tell |the appl| |00001dd0| 69 63 61 74 69 6f 6e 20 | 74 68 61 74 20 74 68 65 |ication |that the| |00001de0| 20 4f 4b 20 62 75 74 74 | 6f 6e 20 68 61 73 20 62 | OK butt|on has b| |00001df0| 65 65 6e 20 63 6c 69 63 | 6b 65 64 20 62 79 20 74 |een clic|ked by t| |00001e00| 68 65 20 75 73 65 72 2e | 0d 09 09 09 2a 2f 0d 09 |he user.|....*/..| |00001e10| 09 09 2a 69 74 65 6d 48 | 69 74 20 3d 20 6f 6b 3b |..*itemH|it = ok;| |00001e20| 0d 09 09 09 0d 09 09 09 | 2f 2a 20 74 65 6c 6c 20 |........|/* tell | |00001e30| 74 68 65 20 44 69 61 6c | 6f 67 20 4d 61 6e 67 65 |the Dial|og Mange| |00001e40| 72 20 74 68 61 74 20 74 | 68 65 20 65 76 65 6e 74 |r that t|he event| |00001e50| 20 68 61 73 20 62 65 65 | 6e 20 68 61 6e 64 6c 65 | has bee|n handle| |00001e60| 64 20 61 6e 64 20 74 68 | 65 0d 09 09 09 2a 2a 20 |d and th|e....** | |00001e70| 63 68 61 72 61 63 74 65 | 72 20 73 68 6f 75 6c 64 |characte|r should| |00001e80| 20 6e 6f 74 20 62 65 20 | 61 64 64 65 64 20 74 6f | not be |added to| |00001e90| 20 74 68 65 20 74 65 78 | 74 20 65 64 69 74 20 66 | the tex|t edit f| |00001ea0| 69 65 6c 64 2e 0d 09 09 | 09 2a 2f 0d 09 09 09 72 |ield....|.*/....r| |00001eb0| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 09 09 7d 0d |eturn tr|ue;...}.| |00001ec0| 09 09 62 72 65 61 6b 3b | 0d 09 7d 0d 09 0d 09 2f |..break;|..}..../| |00001ed0| 2a 20 74 65 6c 6c 20 74 | 68 65 20 44 69 61 6c 6f |* tell t|he Dialo| |00001ee0| 67 20 4d 61 6e 67 65 72 | 20 74 68 61 74 20 74 68 |g Manger| that th| |00001ef0| 65 20 65 76 65 6e 74 20 | 68 61 73 20 4e 4f 54 20 |e event |has NOT | |00001f00| 62 65 65 6e 20 68 61 6e | 64 6c 65 64 20 61 6e 64 |been han|dled and| |00001f10| 20 74 68 61 74 20 69 74 | 20 73 68 6f 75 6c 64 0d | that it| should.| |00001f20| 09 2a 2a 20 74 61 6b 65 | 20 66 75 72 74 68 65 72 |.** take| further| |00001f30| 20 61 63 74 69 6f 6e 20 | 6f 6e 20 74 68 69 73 20 | action |on this | |00001f40| 65 76 65 6e 74 2e 0d 09 | 2a 2f 0d 09 72 65 74 75 |event...|*/..retu| |00001f50| 72 6e 20 66 61 6c 73 65 | 3b 0d 7d 0d 0d 2f 2a 20 |rn false|;.}../* | |00001f60| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 20 77 69 6c |this rou|tine wil| |00001f70| 6c 20 6e 6f 74 20 72 65 | 74 75 72 6e 20 75 6e 74 |l not re|turn unt| |00001f80| 69 6c 20 74 68 65 20 75 | 73 65 72 20 68 61 73 20 |il the u|ser has | |00001f90| 64 69 73 6d 69 73 73 65 | 64 20 74 68 65 20 6d 6f |dismisse|d the mo| |00001fa0| 64 61 6c 20 64 69 61 6c | 6f 67 20 77 69 74 68 0d |dal dial|og with.| |00001fb0| 2a 2a 20 61 20 70 72 65 | 73 73 20 6f 66 20 74 68 |** a pre|ss of th| |00001fc0| 65 20 72 65 74 75 72 6e | 20 6b 65 79 20 6f 72 20 |e return| key or | |00001fd0| 61 20 63 6c 69 63 6b 20 | 69 6e 20 74 68 65 20 6f |a click |in the o| |00001fe0| 6b 20 6f 72 20 63 61 6e | 63 65 6c 20 62 75 74 74 |k or can|cel butt| |00001ff0| 6f 6e 73 2e 20 69 74 20 | 64 69 73 70 6c 61 79 73 |ons. it |displays| |00002000| 20 61 20 0d 2a 2a 20 6c | 69 73 74 2c 20 63 68 65 | a .** l|ist, che| |00002010| 63 6b 20 62 6f 78 65 73 | 20 66 6f 72 20 73 65 74 |ck boxes| for set| |00002020| 74 69 6e 67 20 73 65 6c | 65 63 74 69 6f 6e 20 66 |ting sel|ection f| |00002030| 6c 61 67 73 2c 20 61 20 | 74 65 78 74 20 65 64 69 |lags, a |text edi| |00002040| 74 20 66 69 65 6c 64 20 | 66 6f 72 20 73 65 61 72 |t field |for sear| |00002050| 63 68 69 6e 67 20 61 6e | 64 20 73 65 74 74 69 6e |ching an|d settin| |00002060| 67 0d 2a 2a 20 63 65 6c | 6c 20 64 61 74 61 20 61 |g.** cel|l data a| |00002070| 6e 64 20 74 68 65 20 75 | 73 75 61 6c 20 6f 6b 20 |nd the u|sual ok | |00002080| 61 6e 64 20 63 61 6e 63 | 65 6c 20 62 75 74 74 6f |and canc|el butto| |00002090| 6e 73 2e 20 74 68 65 20 | 6c 69 73 74 20 75 73 65 |ns. the |list use| |000020a0| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 4c 44 |s the de|fault LD| |000020b0| 45 46 20 70 72 6f 63 65 | 64 75 72 65 2e 0d 2a 2a |EF proce|dure..**| |000020c0| 0d 2a 2a 20 69 66 20 79 | 6f 75 20 64 6f 75 62 6c |.** if y|ou doubl| |000020d0| 65 20 63 6c 69 63 6b 20 | 69 6e 20 61 20 63 65 6c |e click |in a cel| |000020e0| 6c 20 74 68 65 20 63 65 | 6c 6c 73 20 63 6f 6e 74 |l the ce|lls cont| |000020f0| 65 6e 74 73 20 77 69 6c | 6c 20 62 65 20 6d 6f 76 |ents wil|l be mov| |00002100| 65 64 20 74 6f 20 74 68 | 65 0d 2a 2a 20 74 65 78 |ed to th|e.** tex| |00002110| 74 20 65 64 69 74 20 66 | 69 65 6c 64 2e 20 65 64 |t edit f|ield. ed| |00002120| 69 74 20 74 68 65 20 66 | 69 65 6c 64 20 61 6e 64 |it the f|ield and| |00002130| 20 63 6c 69 63 6b 20 74 | 68 65 20 73 65 74 20 62 | click t|he set b| |00002140| 75 74 74 6f 6e 20 61 6e | 64 20 79 6f 75 20 77 69 |utton an|d you wi| |00002150| 6c 6c 20 68 61 76 65 20 | 65 64 69 74 65 64 20 74 |ll have |edited t| |00002160| 68 65 0d 2a 2a 20 63 65 | 6c 6c 20 63 6f 6e 74 65 |he.** ce|ll conte| |00002170| 6e 74 73 2e 0d 2a 2a 0d | 2a 2a 20 6e 6f 74 65 20 |nts..**.|** note | |00002180| 74 68 61 74 20 74 68 65 | 20 53 65 74 20 62 75 74 |that the| Set but| |00002190| 74 6f 6e 20 73 65 74 73 | 20 74 68 65 20 6c 61 73 |ton sets| the las| |000021a0| 74 20 63 65 6c 6c 20 63 | 6c 69 63 6b 65 64 20 69 |t cell c|licked i| |000021b0| 6e 20 74 6f 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |n to the| content| |000021c0| 73 20 6f 66 20 74 68 65 | 20 74 65 78 74 20 65 64 |s of the| text ed| |000021d0| 69 74 20 66 69 65 6c 64 | 2e 0d 2a 2a 20 69 74 20 |it field|..** it | |000021e0| 64 6f 65 73 20 6e 6f 74 | 20 6e 65 63 65 73 73 61 |does not| necessa| |000021f0| 72 69 6c 79 20 73 65 74 | 20 74 68 65 20 63 65 6c |rily set| the cel| |00002200| 6c 20 77 68 69 63 68 20 | 69 73 20 73 65 6c 65 63 |l which |is selec| |00002210| 74 65 64 20 6f 72 20 68 | 69 6c 69 74 65 64 20 62 |ted or h|ilited b| |00002220| 75 74 20 69 74 20 73 65 | 74 73 20 74 68 65 20 63 |ut it se|ts the c| |00002230| 65 6c 6c 20 74 68 61 74 | 0d 2a 2a 20 4c 4c 61 73 |ell that|.** LLas| |00002240| 74 43 6c 69 63 6b 20 72 | 65 74 75 72 6e 73 2e 20 |tClick r|eturns. | |00002250| 69 74 20 69 73 20 73 6f | 72 74 20 6f 66 20 61 20 |it is so|rt of a | |00002260| 66 75 6e 6b 79 20 75 73 | 65 72 20 69 6e 74 65 72 |funky us|er inter| |00002270| 66 61 63 65 20 62 75 74 | 20 69 74 20 64 6f 65 73 |face but| it does| |00002280| 20 64 65 6d 6f 6e 73 74 | 72 61 74 65 20 74 68 65 | demonst|rate the| |00002290| 0d 2a 2a 20 75 73 65 20 | 6f 66 20 4c 4c 61 73 74 |.** use |of LLast| |000022a0| 43 6c 69 63 6b 2e 0d 2a | 2a 0d 2a 2a 20 69 66 20 |Click..*|*.** if | |000022b0| 79 6f 75 20 73 63 72 6f | 6c 6c 20 74 68 65 20 6c |you scro|ll the l| |000022c0| 69 73 74 20 61 6c 6c 20 | 74 68 65 20 77 61 79 20 |ist all |the way | |000022d0| 74 6f 20 74 68 65 20 72 | 69 67 68 74 20 79 6f 75 |to the r|ight you| |000022e0| 20 77 69 6c 6c 20 6e 6f | 74 69 63 65 20 74 68 61 | will no|tice tha| |000022f0| 74 20 74 68 65 72 65 20 | 69 73 20 73 6f 6d 65 20 |t there |is some | |00002300| 65 78 74 72 61 0d 2a 2a | 20 77 68 69 74 65 20 73 |extra.**| white s| |00002310| 70 61 63 65 20 74 6f 20 | 74 68 65 20 72 69 67 68 |pace to |the righ| |00002320| 74 20 6f 66 20 74 68 65 | 20 72 69 67 68 74 20 6d |t of the| right m| |00002330| 6f 73 74 20 63 65 6c 6c | 2e 20 74 68 69 73 20 77 |ost cell|. this w| |00002340| 61 73 20 64 6f 6e 65 20 | 69 6e 74 65 6e 74 69 6f |as done |intentio| |00002350| 6e 61 6c 6c 79 20 74 6f | 20 73 68 6f 77 20 77 68 |nally to| show wh| |00002360| 61 74 0d 2a 2a 20 63 61 | 6e 20 68 61 70 70 65 6e |at.** ca|n happen| |00002370| 20 77 68 65 6e 20 74 68 | 65 20 6c 69 73 74 73 20 | when th|e lists | |00002380| 76 69 65 77 69 6e 67 20 | 72 65 63 74 61 6e 67 6c |viewing |rectangl| |00002390| 65 20 69 73 20 6e 6f 74 | 20 61 6e 20 65 76 65 6e |e is not| an even| |000023a0| 20 6d 75 6c 74 69 70 6c | 65 20 6f 66 20 74 68 65 | multipl|e of the| |000023b0| 20 63 65 6c 6c 20 72 65 | 63 74 61 6e 67 6c 65 73 | cell re|ctangles| |000023c0| 2e 0d 2a 2a 20 74 68 65 | 20 4c 69 73 74 20 4d 61 |..** the| List Ma| |000023d0| 6e 61 67 65 72 20 6d 75 | 73 74 20 73 63 72 6f 6c |nager mu|st scrol| |000023e0| 6c 20 74 68 69 73 20 65 | 78 74 72 61 20 62 69 74 |l this e|xtra bit| |000023f0| 20 73 6f 20 74 68 61 74 | 20 69 74 20 63 61 6e 20 | so that| it can | |00002400| 64 69 73 70 6c 61 79 20 | 74 68 65 20 65 6e 74 69 |display |the enti| |00002410| 72 65 20 77 69 64 74 68 | 20 6f 66 20 74 68 65 0d |re width| of the.| |00002420| 2a 2a 20 72 69 67 68 74 | 20 6d 6f 73 74 20 63 65 |** right| most ce| |00002430| 6c 6c 73 2e 20 6e 6f 74 | 69 63 65 20 74 6f 6f 20 |lls. not|ice too | |00002440| 74 68 61 74 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 |that the| bottom | |00002450| 6d 6f 73 74 20 63 65 6c | 6c 20 64 6f 65 73 20 6e |most cel|l does n| |00002460| 6f 74 20 64 69 73 70 6c | 61 79 20 74 68 69 73 20 |ot displ|ay this | |00002470| 62 65 68 61 76 69 6f 72 | 20 73 69 6e 63 65 0d 2a |behavior| since.*| |00002480| 2a 20 74 68 65 20 68 65 | 69 67 68 74 20 6f 66 20 |* the he|ight of | |00002490| 74 68 65 20 6c 69 73 74 | 27 73 20 76 69 65 77 69 |the list|'s viewi| |000024a0| 6e 67 20 72 65 63 74 61 | 6e 67 6c 65 20 69 73 20 |ng recta|ngle is | |000024b0| 61 6e 20 65 76 65 6e 20 | 6d 75 6c 74 69 70 6c 65 |an even |multiple| |000024c0| 20 6f 66 20 74 68 65 20 | 63 65 6c 6c 20 68 65 69 | of the |cell hei| |000024d0| 67 68 74 2e 0d 2a 2a 0d | 2a 2a 20 6e 6f 74 65 20 |ght..**.|** note | |000024e0| 74 68 61 74 20 61 20 63 | 61 6c 6c 20 74 6f 20 4c |that a c|all to L| |000024f0| 53 65 74 53 65 6c 65 63 | 74 20 77 69 6c 6c 20 73 |SetSelec|t will s| |00002500| 65 6c 65 63 74 20 6f 72 | 20 68 69 6c 69 74 65 20 |elect or| hilite | |00002510| 61 20 63 65 6c 6c 20 77 | 68 69 63 68 20 69 73 20 |a cell w|hich is | |00002520| 65 6d 70 74 79 20 65 76 | 65 6e 20 74 68 6f 75 67 |empty ev|en thoug| |00002530| 68 20 0d 2a 2a 20 74 68 | 65 20 6c 69 73 74 27 73 |h .** th|e list's| |00002540| 20 73 65 6c 65 63 74 69 | 6f 6e 20 66 6c 61 67 73 | selecti|on flags| |00002550| 20 66 69 65 6c 64 20 69 | 73 20 73 65 74 20 74 6f | field i|s set to| |00002560| 20 6c 4e 6f 4e 69 6c 48 | 69 6c 69 74 65 2e 20 74 | lNoNilH|ilite. t| |00002570| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 20 66 6c 61 |he selec|tion fla| |00002580| 67 73 0d 2a 2a 20 61 72 | 65 20 75 73 65 64 20 6f |gs.** ar|e used o| |00002590| 6e 6c 79 20 62 79 20 74 | 68 65 20 4c 43 6c 69 63 |nly by t|he LClic| |000025a0| 6b 20 72 6f 75 74 69 6e | 65 20 74 68 65 79 20 64 |k routin|e they d| |000025b0| 6f 20 6e 6f 74 20 70 72 | 65 76 65 6e 74 20 74 68 |o not pr|event th| |000025c0| 65 20 70 72 6f 67 72 61 | 6d 20 66 72 6f 6d 20 73 |e progra|m from s| |000025d0| 65 6c 65 63 74 69 6e 67 | 20 0d 2a 2a 20 63 65 6c |electing| .** cel| |000025e0| 6c 73 20 77 69 74 68 20 | 4c 53 65 74 53 65 6c 65 |ls with |LSetSele| |000025f0| 63 74 20 69 6e 20 73 75 | 63 68 20 61 20 77 61 79 |ct in su|ch a way| |00002600| 20 74 68 61 74 20 6d 61 | 79 20 73 65 65 6d 20 69 | that ma|y seem i| |00002610| 6e 63 6f 6e 73 69 73 74 | 65 6e 74 20 77 69 74 68 |nconsist|ent with| |00002620| 20 74 68 65 69 72 0d 2a | 2a 20 73 65 74 74 69 6e | their.*|* settin| |00002630| 67 2e 20 74 68 69 73 20 | 70 65 63 75 6c 69 61 72 |g. this |peculiar| |00002640| 69 74 79 20 63 61 6e 20 | 61 6c 73 6f 20 68 61 70 |ity can |also hap| |00002650| 70 65 6e 20 77 69 74 68 | 20 6f 74 68 65 72 20 73 |pen with| other s| |00002660| 65 6c 65 63 74 69 6f 6e | 20 66 6c 61 67 20 73 65 |election| flag se| |00002670| 74 74 69 6e 67 73 20 61 | 6e 64 20 74 68 65 0d 2a |ttings a|nd the.*| |00002680| 2a 20 4c 53 65 74 53 65 | 6c 65 63 74 20 63 61 6c |* LSetSe|lect cal| |00002690| 6c 2e 0d 2a 2a 0d 2a 2a | 20 6e 6f 74 69 63 65 20 |l..**.**| notice | |000026a0| 61 6c 73 6f 20 74 68 61 | 74 20 74 68 65 20 63 6f |also tha|t the co| |000026b0| 6c 75 6d 6e 20 77 69 64 | 74 68 73 20 61 72 65 20 |lumn wid|ths are | |000026c0| 61 6c 6c 20 65 71 75 61 | 6c 2c 20 74 68 65 72 65 |all equa|l, there| |000026d0| 20 69 73 20 6e 6f 20 77 | 61 79 20 74 6f 20 6d 61 | is no w|ay to ma| |000026e0| 6b 65 20 63 65 6c 6c 73 | 20 77 69 74 68 20 64 69 |ke cells| with di| |000026f0| 66 66 65 72 65 6e 74 20 | 0d 2a 2a 20 63 6f 6c 75 |fferent |.** colu| |00002700| 6d 6e 20 77 69 64 74 68 | 73 20 75 73 69 6e 67 20 |mn width|s using | |00002710| 74 68 65 20 4c 69 73 74 | 20 4d 61 6e 61 67 65 72 |the List| Manager| |00002720| 2e 0d 2a 2a 0d 2a 2a 20 | 74 68 65 72 65 20 68 61 |..**.** |there ha| |00002730| 76 65 20 62 65 65 6e 20 | 72 65 71 75 65 73 74 73 |ve been |requests| |00002740| 20 66 6f 72 20 74 68 65 | 20 63 61 70 61 62 69 6c | for the| capabil| |00002750| 69 74 79 20 74 6f 20 68 | 61 76 65 20 6d 75 6c 74 |ity to h|ave mult| |00002760| 69 70 6c 65 20 6c 69 73 | 74 73 20 64 69 73 70 6c |iple lis|ts displ| |00002770| 61 79 65 64 20 69 6e 20 | 61 0d 2a 2a 20 77 69 6e |ayed in |a.** win| |00002780| 64 6f 77 20 61 6e 64 20 | 68 61 76 65 20 74 68 65 |dow and |have the| |00002790| 6d 20 62 6f 74 68 20 73 | 63 72 6f 6c 6c 65 64 20 |m both s|crolled | |000027a0| 62 79 20 6f 6e 65 20 73 | 63 72 6f 6c 6c 62 61 72 |by one s|crollbar| |000027b0| 2e 20 74 68 65 20 6f 6e | 6c 79 20 77 61 79 20 74 |. the on|ly way t| |000027c0| 6f 20 61 63 63 6f 6d 70 | 6c 69 73 68 20 74 68 69 |o accomp|lish thi| |000027d0| 73 20 0d 2a 2a 20 77 6f | 75 6c 64 20 62 65 20 74 |s .** wo|uld be t| |000027e0| 6f 20 6d 61 6b 65 20 6e | 65 77 20 6c 69 73 74 73 |o make n|ew lists| |000027f0| 20 77 69 74 68 6f 75 74 | 20 74 68 65 20 4c 69 73 | without| the Lis| |00002800| 74 20 4d 61 6e 61 67 65 | 72 27 73 20 73 63 72 6f |t Manage|r's scro| |00002810| 6c 6c 56 20 6f 72 20 73 | 63 72 6f 6c 6c 48 20 73 |llV or s|crollH s| |00002820| 63 72 6f 6c 6c 62 61 72 | 73 2e 0d 2a 2a 20 74 68 |crollbar|s..** th| |00002830| 65 6e 20 63 72 65 61 74 | 65 20 61 20 6e 65 77 20 |en creat|e a new | |00002840| 73 63 72 6f 6c 6c 62 61 | 72 20 75 73 69 6e 67 20 |scrollba|r using | |00002850| 74 68 65 20 43 6f 6e 74 | 72 6f 6c 20 4d 61 6e 61 |the Cont|rol Mana| |00002860| 67 65 72 20 61 6e 64 20 | 73 65 74 75 70 20 61 6e |ger and |setup an| |00002870| 20 61 63 74 69 6f 6e 20 | 70 72 6f 63 65 64 75 72 | action |procedur| |00002880| 65 20 66 6f 72 0d 2a 2a | 20 54 72 61 63 6b 43 6f |e for.**| TrackCo| |00002890| 6e 74 72 6f 6c 20 77 68 | 69 63 68 20 63 61 6c 6c |ntrol wh|ich call| |000028a0| 73 20 4c 53 63 72 6f 6c | 6c 20 66 6f 72 20 65 61 |s LScrol|l for ea| |000028b0| 63 68 20 6f 66 20 74 68 | 65 20 6c 69 73 74 73 2e |ch of th|e lists.| |000028c0| 20 74 68 69 73 20 69 73 | 20 6e 6f 74 20 64 65 6d | this is| not dem| |000028d0| 6f 6e 73 74 72 61 74 65 | 64 20 69 6e 0d 2a 2a 20 |onstrate|d in.** | |000028e0| 74 68 69 73 20 73 61 6d | 70 6c 65 20 70 72 6f 67 |this sam|ple prog| |000028f0| 72 61 6d 2e 0d 2a 2a 0d | 2a 2f 0d 0d 23 70 72 61 |ram..**.|*/..#pra| |00002900| 67 6d 61 20 73 65 67 6d | 65 6e 74 20 4d 61 69 6e |gma segm|ent Main| |00002910| 0d 42 6f 6f 6c 65 61 6e | 20 4d 79 4c 69 73 74 28 |.Boolean| MyList(| |00002920| 29 20 7b 0d 09 61 75 74 | 6f 09 44 69 61 6c 6f 67 |) {..aut|o.Dialog| |00002930| 50 74 72 09 64 69 61 6c | 6f 67 3b 09 09 09 2f 2a |Ptr.dial|og;.../*| |00002940| 20 61 20 64 69 61 6c 6f | 67 20 63 6f 6e 74 61 69 | a dialo|g contai| |00002950| 6e 69 6e 67 20 74 68 65 | 20 6c 69 73 74 20 69 74 |ning the| list it| |00002960| 65 6d 20 2a 2f 0d 0d 09 | 61 75 74 6f 09 73 68 6f |em */...|auto.sho| |00002970| 72 74 09 09 69 74 65 6d | 4e 6f 3b 09 09 09 2f 2a |rt..item|No;.../*| |00002980| 20 74 68 65 20 69 74 65 | 6d 20 69 6e 20 74 68 65 | the ite|m in the| |00002990| 20 64 69 61 6c 6f 67 20 | 73 65 6c 65 63 74 65 64 | dialog |selected| |000029a0| 20 2a 2f 0d 09 61 75 74 | 6f 09 73 68 6f 72 74 09 | */..aut|o.short.| |000029b0| 09 69 74 65 6d 54 79 70 | 65 3b 09 09 2f 2a 20 64 |.itemTyp|e;../* d| |000029c0| 75 6d 6d 79 20 70 61 72 | 61 6d 65 74 65 72 20 66 |ummy par|ameter f| |000029d0| 6f 72 20 63 61 6c 6c 20 | 74 6f 20 47 65 74 44 49 |or call |to GetDI| |000029e0| 74 65 6d 20 2a 2f 0d 09 | 61 75 74 6f 09 48 61 6e |tem */..|auto.Han| |000029f0| 64 6c 65 09 09 69 74 65 | 6d 48 61 6e 64 6c 65 3b |dle..ite|mHandle;| |00002a00| 09 09 2f 2a 20 64 75 6d | 6d 79 20 70 61 72 61 6d |../* dum|my param| |00002a10| 65 74 65 72 20 66 6f 72 | 20 63 61 6c 6c 20 74 6f |eter for| call to| |00002a20| 20 47 65 74 44 49 74 65 | 6d 20 2a 2f 0d 09 61 75 | GetDIte|m */..au| |00002a30| 74 6f 09 52 65 63 74 09 | 09 69 74 65 6d 52 65 63 |to.Rect.|.itemRec| |00002a40| 74 3b 20 09 09 2f 2a 20 | 74 68 65 20 6c 6f 63 61 |t; ../* |the loca| |00002a50| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 6c 69 73 74 |tion of |the list| |00002a60| 20 69 6e 20 74 68 65 20 | 64 69 61 6c 6f 67 20 2a | in the |dialog *| |00002a70| 2f 0d 09 0d 09 61 75 74 | 6f 09 4c 69 73 74 48 61 |/....aut|o.ListHa| |00002a80| 6e 64 6c 65 09 6c 69 73 | 74 3b 09 09 09 2f 2a 20 |ndle.lis|t;.../* | |00002a90| 74 68 65 20 6c 69 73 74 | 20 63 6f 6e 73 74 72 75 |the list| constru| |00002aa0| 63 74 65 64 20 69 6e 20 | 74 68 65 20 64 69 61 6c |cted in |the dial| |00002ab0| 6f 67 20 2a 2f 0d 09 61 | 75 74 6f 09 52 65 63 74 |og */..a|uto.Rect| |00002ac0| 09 09 64 61 74 61 42 6f | 75 6e 64 73 3b 09 09 2f |..dataBo|unds;../| |00002ad0| 2a 20 74 68 65 20 64 69 | 6d 65 6e 73 69 6f 6e 73 |* the di|mensions| |00002ae0| 20 6f 66 20 74 68 65 20 | 64 61 74 61 20 69 6e 20 | of the |data in | |00002af0| 74 68 65 20 6c 69 73 74 | 20 2a 2f 0d 09 61 75 74 |the list| */..aut| |00002b00| 6f 09 50 6f 69 6e 74 09 | 09 63 65 6c 6c 53 69 7a |o.Point.|.cellSiz| |00002b10| 65 3b 09 09 2f 2a 20 77 | 69 64 74 68 20 61 6e 64 |e;../* w|idth and| |00002b20| 20 68 65 69 67 68 74 20 | 6f 66 20 61 20 63 65 6c | height |of a cel| |00002b30| 6c 73 20 72 65 63 74 61 | 6e 67 6c 65 20 2a 2f 0d |ls recta|ngle */.| |00002b40| 09 61 75 74 6f 09 50 6f | 69 6e 74 09 09 63 65 6c |.auto.Po|int..cel| |00002b50| 6c 3b 09 09 09 2f 2a 20 | 61 6e 20 69 6e 64 65 78 |l;.../* |an index| |00002b60| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 6c 69 73 | through| the lis| |00002b70| 74 20 2a 2f 0d 0d 09 61 | 75 74 6f 09 63 68 61 72 |t */...a|uto.char| |00002b80| 09 09 73 74 72 69 6e 67 | 5b 32 35 35 5d 3b 0d 09 |..string|[255];..| |00002b90| 61 75 74 6f 09 73 68 6f | 72 74 09 09 6c 65 6e 67 |auto.sho|rt..leng| |00002ba0| 74 68 3b 0d 09 0d 09 61 | 75 74 6f 09 73 68 6f 72 |th;....a|uto.shor| |00002bb0| 74 09 09 63 68 65 63 6b | 65 64 3b 09 09 2f 2a 20 |t..check|ed;../* | |00002bc0| 66 6c 61 67 20 66 6f 72 | 20 73 65 74 74 69 6e 67 |flag for| setting| |00002bd0| 20 61 6e 64 20 67 65 74 | 74 69 6e 67 20 63 68 65 | and get|ting che| |00002be0| 63 6b 20 62 6f 78 20 76 | 61 6c 75 65 20 2a 2f 0d |ck box v|alue */.| |00002bf0| 09 61 75 74 6f 09 73 68 | 6f 72 74 09 09 62 69 74 |.auto.sh|ort..bit| |00002c00| 3b 09 09 09 2f 2a 20 75 | 73 65 64 20 61 73 20 61 |;.../* u|sed as a| |00002c10| 20 6d 61 73 6b 20 74 6f | 20 74 65 73 74 20 74 68 | mask to| test th| |00002c20| 65 20 73 65 6c 65 63 74 | 69 6f 6e 20 66 6c 61 67 |e select|ion flag| |00002c30| 73 20 2a 2f 20 0d 09 0d | 09 2f 2a 20 63 72 65 61 |s */ ...|./* crea| |00002c40| 74 65 20 61 20 6e 65 77 | 20 64 69 61 6c 6f 67 20 |te a new| dialog | |00002c50| 77 69 6e 64 6f 77 0d 09 | 2a 2f 0d 09 64 69 61 6c |window..|*/..dial| |00002c60| 6f 67 20 3d 20 47 65 74 | 4e 65 77 44 69 61 6c 6f |og = Get|NewDialo| |00002c70| 67 28 63 44 4c 4f 47 49 | 44 2c 20 28 50 74 72 29 |g(cDLOGI|D, (Ptr)| |00002c80| 20 30 2c 20 28 57 69 6e | 64 6f 77 50 74 72 29 20 | 0, (Win|dowPtr) | |00002c90| 2d 31 29 3b 0d 09 53 65 | 74 50 6f 72 74 28 28 47 |-1);..Se|tPort((G| |00002ca0| 72 61 66 50 74 72 29 20 | 64 69 61 6c 6f 67 29 3b |rafPtr) |dialog);| |00002cb0| 0d 09 09 0d 09 2f 2a 20 | 73 65 74 20 74 68 65 20 |...../* |set the | |00002cc0| 70 72 6f 63 65 64 75 72 | 65 20 70 6f 69 6e 74 65 |procedur|e pointe| |00002cd0| 72 20 66 6f 72 20 74 68 | 65 20 75 73 65 72 20 69 |r for th|e user i| |00002ce0| 74 65 6d 73 20 69 6e 20 | 74 68 65 20 64 69 61 6c |tems in |the dial| |00002cf0| 6f 67 2e 0d 09 2a 2a 20 | 74 68 69 73 20 77 69 6c |og...** |this wil| |00002d00| 6c 20 61 6c 6c 6f 77 20 | 68 65 20 64 65 66 61 75 |l allow |he defau| |00002d10| 6c 74 20 62 75 74 74 6f | 6e 20 74 6f 20 62 65 20 |lt butto|n to be | |00002d20| 6f 75 74 6c 69 6e 65 64 | 20 61 6e 64 20 74 68 65 |outlined| and the| |00002d30| 20 6c 69 73 74 20 74 6f | 20 62 65 20 64 72 61 77 | list to| be draw| |00002d40| 6e 0d 09 2a 2a 20 62 79 | 20 74 68 65 20 44 69 61 |n..** by| the Dia| |00002d50| 6c 6f 67 20 4d 61 6e 67 | 65 72 2e 0d 09 2a 2f 0d |log Mang|er...*/.| |00002d60| 09 47 65 74 44 49 74 65 | 6d 28 64 69 61 6c 6f 67 |.GetDIte|m(dialog| |00002d70| 2c 20 63 4f 4b 4f 75 74 | 6c 69 6e 65 49 74 65 6d |, cOKOut|lineItem| |00002d80| 2c 20 26 69 74 65 6d 54 | 79 70 65 2c 20 26 69 74 |, &itemT|ype, &it| |00002d90| 65 6d 48 61 6e 64 6c 65 | 2c 20 26 69 74 65 6d 52 |emHandle|, &itemR| |00002da0| 65 63 74 29 3b 0d 09 53 | 65 74 44 49 74 65 6d 28 |ect);..S|etDItem(| |00002db0| 64 69 61 6c 6f 67 2c 20 | 63 4f 4b 4f 75 74 6c 69 |dialog, |cOKOutli| |00002dc0| 6e 65 49 74 65 6d 2c 20 | 69 74 65 6d 54 79 70 65 |neItem, |itemType| |00002dd0| 2c 20 28 48 61 6e 64 6c | 65 29 20 4d 79 49 74 65 |, (Handl|e) MyIte| |00002de0| 6d 2c 20 26 69 74 65 6d | 52 65 63 74 29 3b 0d 09 |m, &item|Rect);..| |00002df0| 0d 09 47 65 74 44 49 74 | 65 6d 28 64 69 61 6c 6f |..GetDIt|em(dialo| |00002e00| 67 2c 20 63 4c 69 73 74 | 49 74 65 6d 2c 20 26 69 |g, cList|Item, &i| |00002e10| 74 65 6d 54 79 70 65 2c | 20 26 69 74 65 6d 48 61 |temType,| &itemHa| |00002e20| 6e 64 6c 65 2c 20 26 69 | 74 65 6d 52 65 63 74 29 |ndle, &i|temRect)| |00002e30| 3b 0d 09 53 65 74 44 49 | 74 65 6d 28 64 69 61 6c |;..SetDI|tem(dial| |00002e40| 6f 67 2c 20 63 4c 69 73 | 74 49 74 65 6d 2c 20 69 |og, cLis|tItem, i| |00002e50| 74 65 6d 54 79 70 65 2c | 20 28 48 61 6e 64 6c 65 |temType,| (Handle| |00002e60| 29 20 4d 79 49 74 65 6d | 2c 20 26 69 74 65 6d 52 |) MyItem|, &itemR| |00002e70| 65 63 74 29 3b 0d 0d 09 | 2f 2a 20 6d 61 6b 65 20 |ect);...|/* make | |00002e80| 72 6f 6f 6d 20 66 6f 72 | 20 73 63 72 6f 6c 6c 20 |room for| scroll | |00002e90| 62 61 72 73 20 28 73 65 | 65 20 49 4d 20 49 56 2d |bars (se|e IM IV-| |00002ea0| 32 37 30 29 0d 09 2a 2f | 0d 20 09 69 74 65 6d 52 |270)..*/|. .itemR| |00002eb0| 65 63 74 2e 72 69 67 68 | 74 20 2d 3d 20 31 35 3b |ect.righ|t -= 15;| |00002ec0| 0d 20 09 69 74 65 6d 52 | 65 63 74 2e 62 6f 74 74 |. .itemR|ect.bott| |00002ed0| 6f 6d 20 2d 3d 20 31 35 | 3b 0d 0d 09 2f 2a 20 63 |om -= 15|;.../* c| |00002ee0| 72 65 61 74 65 20 61 20 | 6c 69 73 74 0d 09 2a 2f |reate a |list..*/| |00002ef0| 0d 09 53 65 74 52 65 63 | 74 28 26 64 61 74 61 42 |..SetRec|t(&dataB| |00002f00| 6f 75 6e 64 73 2c 20 30 | 2c 20 30 2c 20 63 4c 69 |ounds, 0|, 0, cLi| |00002f10| 73 74 43 6f 6c 73 2c 20 | 63 4c 69 73 74 52 6f 77 |stCols, |cListRow| |00002f20| 73 29 3b 0d 09 53 65 74 | 50 74 28 26 63 65 6c 6c |s);..Set|Pt(&cell| |00002f30| 53 69 7a 65 2c 20 63 4c | 69 73 74 43 65 6c 6c 57 |Size, cL|istCellW| |00002f40| 69 64 74 68 2c 20 63 4c | 69 73 74 43 65 6c 6c 48 |idth, cL|istCellH| |00002f50| 65 69 67 68 74 29 3b 0d | 09 6c 69 73 74 20 3d 20 |eight);.|.list = | |00002f60| 4c 4e 65 77 28 26 69 74 | 65 6d 52 65 63 74 2c 20 |LNew(&it|emRect, | |00002f70| 26 64 61 74 61 42 6f 75 | 6e 64 73 2c 20 63 65 6c |&dataBou|nds, cel| |00002f80| 6c 53 69 7a 65 2c 20 30 | 2c 20 28 57 69 6e 64 6f |lSize, 0|, (Windo| |00002f90| 77 50 74 72 29 20 64 69 | 61 6c 6f 67 2c 20 66 61 |wPtr) di|alog, fa| |00002fa0| 6c 73 65 2c 20 66 61 6c | 73 65 2c 20 74 72 75 65 |lse, fal|se, true| |00002fb0| 2c 20 74 72 75 65 29 3b | 0d 0d 09 2f 2a 20 61 6c |, true);|.../* al| |00002fc0| 6c 6f 77 20 74 68 65 20 | 64 69 61 6c 6f 67 20 6d |low the |dialog m| |00002fd0| 61 6e 61 67 65 72 20 72 | 6f 75 74 69 6e 65 73 20 |anager r|outines | |00002fe0| 74 6f 20 61 63 63 65 73 | 73 20 74 68 65 20 6c 69 |to acces|s the li| |00002ff0| 73 74 20 72 65 63 6f 72 | 64 0d 09 2a 2f 0d 09 28 |st recor|d..*/..(| |00003000| 28 44 69 61 6c 6f 67 50 | 65 65 6b 29 64 69 61 6c |(DialogP|eek)dial| |00003010| 6f 67 29 2d 3e 77 69 6e | 64 6f 77 2e 72 65 66 43 |og)->win|dow.refC| |00003020| 6f 6e 20 3d 20 28 6c 6f | 6e 67 29 20 6c 69 73 74 |on = (lo|ng) list| |00003030| 3b 0d 09 0d 09 2f 2a 20 | 75 73 65 20 74 68 65 20 |;..../* |use the | |00003040| 63 75 73 74 6f 6d 20 63 | 6c 69 63 6b 20 6c 6f 6f |custom c|lick loo| |00003050| 70 20 70 72 6f 63 65 64 | 75 72 65 0d 09 2a 2f 0d |p proced|ure..*/.| |00003060| 09 28 2a 6c 69 73 74 29 | 2d 3e 6c 43 6c 69 6b 4c |.(*list)|->lClikL| |00003070| 6f 6f 70 20 3d 20 28 50 | 72 6f 63 50 74 72 29 20 |oop = (P|rocPtr) | |00003080| 4d 79 43 6c 69 6b 4c 6f | 6f 70 3b 0d 0d 09 2f 2a |MyClikLo|op;.../*| |00003090| 20 75 73 65 20 74 68 65 | 20 64 65 66 61 75 6c 74 | use the| default| |000030a0| 20 73 65 6c 65 63 74 69 | 6f 6e 20 66 6c 61 67 73 | selecti|on flags| |000030b0| 0d 09 2a 2f 0d 09 28 2a | 6c 69 73 74 29 2d 3e 73 |..*/..(*|list)->s| |000030c0| 65 6c 46 6c 61 67 73 20 | 3d 20 30 3b 0d 09 0d 09 |elFlags |= 0;....| |000030d0| 2f 2a 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 74 68 |/* initi|alize th| |000030e0| 65 20 63 68 65 63 6b 20 | 62 6f 78 65 73 20 69 6e |e check |boxes in| |000030f0| 20 74 68 65 20 64 69 61 | 6c 6f 67 20 61 63 63 6f | the dia|log acco| |00003100| 72 64 69 6e 67 0d 09 2a | 2a 20 74 6f 20 74 68 65 |rding..*|* to the| |00003110| 20 73 65 74 74 69 6e 67 | 73 20 6f 66 20 74 68 65 | setting|s of the| |00003120| 20 6c 69 73 74 27 73 20 | 73 65 6c 65 63 74 69 6f | list's |selectio| |00003130| 6e 20 66 6c 61 67 73 0d | 09 2a 2f 0d 09 62 69 74 |n flags.|.*/..bit| |00003140| 20 3d 20 32 3b 0d 09 69 | 74 65 6d 4e 6f 20 3d 20 | = 2;..i|temNo = | |00003150| 63 4e 6f 4e 69 6c 48 69 | 6c 69 74 65 49 74 65 6d |cNoNilHi|liteItem| |00003160| 3b 0d 09 77 68 69 6c 65 | 20 28 69 74 65 6d 4e 6f |;..while| (itemNo| |00003170| 20 3c 3d 20 63 4f 6e 6c | 79 4f 6e 65 49 74 65 6d | <= cOnl|yOneItem| |00003180| 29 20 7b 0d 09 0d 09 09 | 47 65 74 44 49 74 65 6d |) {.....|GetDItem| |00003190| 28 64 69 61 6c 6f 67 2c | 20 69 74 65 6d 4e 6f 2c |(dialog,| itemNo,| |000031a0| 20 26 69 74 65 6d 54 79 | 70 65 2c 20 26 69 74 65 | &itemTy|pe, &ite| |000031b0| 6d 48 61 6e 64 6c 65 2c | 20 26 69 74 65 6d 52 65 |mHandle,| &itemRe| |000031c0| 63 74 29 3b 0d 20 09 09 | 63 68 65 63 6b 65 64 20 |ct);. ..|checked | |000031d0| 3d 20 28 28 2a 6c 69 73 | 74 29 2d 3e 73 65 6c 46 |= ((*lis|t)->selF| |000031e0| 6c 61 67 73 20 3d 3d 20 | 28 28 2a 6c 69 73 74 29 |lags == |((*list)| |000031f0| 2d 3e 73 65 6c 46 6c 61 | 67 73 20 7c 20 62 69 74 |->selFla|gs | bit| |00003200| 29 29 20 3f 20 31 20 3a | 20 30 3b 0d 20 09 09 53 |)) ? 1 :| 0;. ..S| |00003210| 65 74 43 74 6c 56 61 6c | 75 65 28 28 43 6f 6e 74 |etCtlVal|ue((Cont| |00003220| 72 6f 6c 48 61 6e 64 6c | 65 29 20 69 74 65 6d 48 |rolHandl|e) itemH| |00003230| 61 6e 64 6c 65 2c 20 63 | 68 65 63 6b 65 64 29 3b |andle, c|hecked);| |00003240| 0d 09 09 0d 09 09 62 69 | 74 20 2a 3d 20 32 3b 0d |......bi|t *= 2;.| |00003250| 09 09 2b 2b 69 74 65 6d | 4e 6f 3b 0d 20 20 20 09 |..++item|No;. .| |00003260| 7d 0d 0d 09 2f 2a 20 69 | 6e 69 74 69 61 6c 69 7a |}.../* i|nitializ| |00003270| 65 20 74 68 65 20 63 65 | 6c 6c 27 73 20 63 6f 6e |e the ce|ll's con| |00003280| 74 65 6e 74 73 2e 0d 09 | 2a 2f 0d 09 66 6f 72 20 |tents...|*/..for | |00003290| 28 63 65 6c 6c 2e 76 20 | 3d 20 30 3b 20 63 65 6c |(cell.v |= 0; cel| |000032a0| 6c 2e 76 20 3c 20 28 2a | 2a 6c 69 73 74 29 2e 64 |l.v < (*|*list).d| |000032b0| 61 74 61 42 6f 75 6e 64 | 73 2e 62 6f 74 74 6f 6d |ataBound|s.bottom| |000032c0| 3b 20 2b 2b 63 65 6c 6c | 2e 76 29 20 7b 0d 09 09 |; ++cell|.v) {...| |000032d0| 66 6f 72 20 28 63 65 6c | 6c 2e 68 20 3d 20 30 3b |for (cel|l.h = 0;| |000032e0| 20 63 65 6c 6c 2e 68 20 | 3c 20 28 2a 2a 6c 69 73 | cell.h |< (**lis| |000032f0| 74 29 2e 64 61 74 61 42 | 6f 75 6e 64 73 2e 72 69 |t).dataB|ounds.ri| |00003300| 67 68 74 3b 20 2b 2b 63 | 65 6c 6c 2e 68 29 20 7b |ght; ++c|ell.h) {| |00003310| 0d 09 09 0d 09 09 09 2f | 2a 20 6d 61 6b 65 20 61 |......./|* make a| |00003320| 20 73 74 72 69 6e 67 20 | 72 65 70 72 65 73 65 6e | string |represen| |00003330| 74 69 6e 67 20 74 68 65 | 20 63 65 6c 6c 27 73 20 |ting the| cell's | |00003340| 70 6f 73 69 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |position| in the | |00003350| 6c 69 73 74 2e 0d 09 09 | 09 2a 2f 0d 09 09 09 6c |list....|.*/....l| |00003360| 65 6e 67 74 68 20 3d 20 | 43 65 6c 6c 32 53 74 72 |ength = |Cell2Str| |00003370| 69 6e 67 28 63 65 6c 6c | 2c 20 73 74 72 69 6e 67 |ing(cell|, string| |00003380| 29 3b 0d 09 09 09 0d 09 | 09 09 2f 2a 20 69 6e 69 |);......|../* ini| |00003390| 74 69 61 6c 69 7a 65 20 | 74 68 65 20 63 65 6c 6c |tialize |the cell| |000033a0| 20 63 6f 6e 74 65 6e 74 | 73 20 74 6f 20 74 68 69 | content|s to thi| |000033b0| 73 20 73 74 72 69 6e 67 | 2e 0d 09 09 09 2a 2a 0d |s string|.....**.| |000033c0| 09 09 09 2a 2a 20 79 6f | 75 20 77 6f 75 6c 64 20 |...** yo|u would | |000033d0| 69 6e 69 74 69 61 6c 69 | 7a 65 20 79 6f 75 72 20 |initiali|ze your | |000033e0| 63 65 6c 6c 20 64 61 74 | 61 20 77 69 74 68 20 77 |cell dat|a with w| |000033f0| 68 61 74 20 65 76 65 72 | 20 69 73 20 61 70 70 72 |hat ever| is appr| |00003400| 6f 70 72 69 61 74 65 0d | 09 09 09 2a 2a 20 66 6f |opriate.|...** fo| |00003410| 72 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |r your a|pplicati| |00003420| 6f 6e 20 68 65 72 65 2e | 0d 09 09 09 2a 2f 0d 09 |on here.|....*/..| |00003430| 09 09 4c 53 65 74 43 65 | 6c 6c 28 73 74 72 69 6e |..LSetCe|ll(strin| |00003440| 67 2c 20 6c 65 6e 67 74 | 68 2c 20 63 65 6c 6c 2c |g, lengt|h, cell,| |00003450| 20 6c 69 73 74 29 3b 0d | 09 09 7d 0d 09 7d 0d 09 | list);.|..}..}..| |00003460| 0d 09 2f 2a 20 74 75 72 | 6e 20 63 65 6c 6c 20 64 |../* tur|n cell d| |00003470| 72 61 77 69 6e 67 20 6f | 6e 20 6f 6e 6c 79 20 61 |rawing o|n only a| |00003480| 66 74 65 72 20 74 68 65 | 20 63 65 6c 6c 20 63 6f |fter the| cell co| |00003490| 6e 74 65 6e 74 73 20 68 | 61 76 65 20 62 65 65 6e |ntents h|ave been| |000034a0| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 2e 0d 09 2a | initial|ized...*| |000034b0| 2a 20 74 68 69 73 20 77 | 69 6c 6c 20 61 76 6f 69 |* this w|ill avoi| |000034c0| 64 20 77 61 74 63 68 69 | 6e 67 20 74 68 65 20 64 |d watchi|ng the d| |000034d0| 65 6c 61 79 20 62 65 74 | 77 65 65 6e 20 74 68 65 |elay bet|ween the| |000034e0| 20 4c 53 65 74 43 65 6c | 6c 73 20 63 61 6c 6c 73 | LSetCel|ls calls| |000034f0| 20 61 6e 64 20 69 73 20 | 66 61 73 74 65 72 2e 0d | and is |faster..| |00003500| 09 2a 2f 0d 09 4c 44 6f | 44 72 61 77 28 74 72 75 |.*/..LDo|Draw(tru| |00003510| 65 2c 20 6c 69 73 74 29 | 3b 0d 09 0d 09 64 6f 20 |e, list)|;....do | |00003520| 7b 0d 09 0d 09 09 2f 2a | 20 70 72 6f 63 65 73 73 |{...../*| process| |00003530| 20 68 69 74 73 20 69 6e | 20 74 68 65 20 64 69 61 | hits in| the dia| |00003540| 6c 6f 67 2e 0d 09 09 2a | 2f 0d 09 09 4d 6f 64 61 |log....*|/...Moda| |00003550| 6c 44 69 61 6c 6f 67 28 | 4d 79 46 69 6c 74 65 72 |lDialog(|MyFilter| |00003560| 2c 20 26 69 74 65 6d 4e | 6f 29 3b 0d 09 09 0d 09 |, &itemN|o);.....| |00003570| 09 73 77 69 74 63 68 28 | 69 74 65 6d 4e 6f 29 20 |.switch(|itemNo) | |00003580| 7b 0d 0d 09 09 2f 2a 20 | 70 72 6f 63 65 73 73 20 |{..../* |process | |00003590| 68 69 74 73 20 69 6e 20 | 74 68 65 20 4f 4b 20 62 |hits in |the OK b| |000035a0| 75 74 74 6f 6e 2e 0d 09 | 09 2a 2f 20 0d 09 09 63 |utton...|.*/ ...c| |000035b0| 61 73 65 20 6f 6b 20 3a | 0d 09 09 0d 09 09 09 2f |ase ok :|......./| |000035c0| 2a 20 66 69 6e 64 20 6f | 75 74 20 77 68 69 63 68 |* find o|ut which| |000035d0| 20 63 65 6c 6c 73 20 68 | 61 76 65 20 62 65 65 6e | cells h|ave been| |000035e0| 20 73 65 6c 65 63 74 65 | 64 2e 0d 09 09 09 2a 2f | selecte|d.....*/| |000035f0| 0d 09 09 09 53 65 74 50 | 74 28 26 63 65 6c 6c 2c |....SetP|t(&cell,| |00003600| 20 30 2c 20 30 29 3b 0d | 09 09 09 77 68 69 6c 65 | 0, 0);.|...while| |00003610| 28 4c 47 65 74 53 65 6c | 65 63 74 28 74 72 75 65 |(LGetSel|ect(true| |00003620| 2c 20 26 63 65 6c 6c 2c | 20 6c 69 73 74 29 29 20 |, &cell,| list)) | |00003630| 7b 0d 09 09 09 0d 09 09 | 09 09 2f 2a 20 74 68 65 |{.......|../* the| |00003640| 72 65 20 69 73 20 6e 6f | 74 68 69 6e 67 20 74 6f |re is no|thing to| |00003650| 20 64 6f 20 77 69 74 68 | 20 74 68 65 20 75 73 65 | do with| the use| |00003660| 72 27 73 20 73 65 6c 65 | 63 74 69 6f 6e 73 20 69 |r's sele|ctions i| |00003670| 6e 20 74 68 69 73 20 73 | 61 6d 70 6c 65 0d 09 09 |n this s|ample...| |00003680| 09 09 2a 2a 20 73 6f 20 | 69 27 6c 6c 20 6a 75 73 |..** so |i'll jus| |00003690| 74 20 64 65 73 65 6c 65 | 63 74 20 74 68 65 20 63 |t desele|ct the c| |000036a0| 65 6c 6c 73 20 74 68 65 | 20 75 73 65 72 73 20 68 |ells the| users h| |000036b0| 61 73 20 73 65 6c 65 63 | 74 65 64 2e 0d 09 09 09 |as selec|ted.....| |000036c0| 09 2a 2f 0d 09 09 09 09 | 4c 53 65 74 53 65 6c 65 |.*/.....|LSetSele| |000036d0| 63 74 28 66 61 6c 73 65 | 2c 20 63 65 6c 6c 2c 20 |ct(false|, cell, | |000036e0| 6c 69 73 74 29 3b 0d 09 | 09 09 7d 0d 09 09 09 62 |list);..|..}....b| |000036f0| 72 65 61 6b 3b 0d 09 09 | 0d 09 09 2f 2a 20 70 72 |reak;...|.../* pr| |00003700| 6f 63 65 73 73 20 68 69 | 74 73 20 69 6e 20 74 68 |ocess hi|ts in th| |00003710| 65 20 46 69 6e 64 20 62 | 75 74 74 6f 6e 2e 0d 09 |e Find b|utton...| |00003720| 09 2a 2f 20 0d 09 09 63 | 61 73 65 20 63 46 69 6e |.*/ ...c|ase cFin| |00003730| 64 49 74 65 6d 20 3a 0d | 09 09 0d 09 09 09 47 65 |dItem :.|......Ge| |00003740| 74 44 49 74 65 6d 28 64 | 69 61 6c 6f 67 2c 20 63 |tDItem(d|ialog, c| |00003750| 54 65 78 74 49 74 65 6d | 2c 20 26 69 74 65 6d 54 |TextItem|, &itemT| |00003760| 79 70 65 2c 20 26 69 74 | 65 6d 48 61 6e 64 6c 65 |ype, &it|emHandle| |00003770| 2c 20 26 69 74 65 6d 52 | 65 63 74 29 3b 0d 09 09 |, &itemR|ect);...| |00003780| 09 47 65 74 49 54 65 78 | 74 28 69 74 65 6d 48 61 |.GetITex|t(itemHa| |00003790| 6e 64 6c 65 2c 20 73 74 | 72 69 6e 67 29 3b 0d 09 |ndle, st|ring);..| |000037a0| 09 09 0d 09 09 09 2f 2a | 20 73 65 61 72 63 68 20 |....../*| search | |000037b0| 66 6f 72 20 61 20 6d 61 | 74 63 68 20 69 6e 20 74 |for a ma|tch in t| |000037c0| 68 65 20 6c 69 73 74 2e | 0d 09 09 09 2a 2a 20 73 |he list.|....** s| |000037d0| 74 61 72 74 20 74 68 65 | 20 73 65 61 72 63 68 20 |tart the| search | |000037e0| 61 74 20 74 68 65 20 75 | 70 70 65 72 20 6c 65 66 |at the u|pper lef| |000037f0| 74 20 6d 6f 73 74 20 63 | 65 6c 6c 20 69 6e 20 74 |t most c|ell in t| |00003800| 68 65 20 6c 69 73 74 2e | 0d 09 09 09 2a 2a 0d 09 |he list.|....**..| |00003810| 09 09 2a 2a 20 74 68 65 | 20 4c 69 73 74 20 4d 61 |..** the| List Ma| |00003820| 6e 67 65 72 20 70 65 72 | 66 6f 72 6d 73 20 74 68 |nger per|forms th| |00003830| 65 20 73 65 61 72 63 68 | 73 20 72 6f 77 20 62 79 |e search|s row by| |00003840| 20 72 6f 77 20 75 6e 74 | 69 6c 20 69 74 20 66 69 | row unt|il it fi| |00003850| 6e 64 73 0d 09 09 09 2a | 2a 20 74 68 65 20 66 69 |nds....*|* the fi| |00003860| 72 73 74 20 6d 61 74 63 | 68 2e 20 74 68 69 73 20 |rst matc|h. this | |00003870| 6f 72 64 65 72 20 63 61 | 6e 20 6e 6f 74 20 62 65 |order ca|n not be| |00003880| 20 63 68 61 6e 67 65 64 | 20 77 69 74 68 6f 75 74 | changed| without| |00003890| 20 77 72 69 74 69 6e 67 | 20 61 0d 09 09 09 2a 2a | writing| a....**| |000038a0| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 20 74 6f 20 | replace|ment to | |000038b0| 4c 53 65 61 72 63 68 2c | 20 70 72 6f 62 61 62 6c |LSearch,| probabl| |000038c0| 79 20 6d 61 6b 69 6e 67 | 20 75 73 65 20 6f 66 20 |y making| use of | |000038d0| 4c 47 65 74 43 65 6c 6c | 2c 20 4c 4e 65 78 74 43 |LGetCell|, LNextC| |000038e0| 65 6c 6c 20 61 6e 64 0d | 09 09 09 2a 2a 20 74 68 |ell and.|...** th| |000038f0| 65 20 49 6e 74 65 72 6e | 61 74 69 6f 6e 61 6c 20 |e Intern|ational | |00003900| 73 65 61 72 63 68 20 72 | 6f 75 74 69 6e 65 73 2e |search r|outines.| |00003910| 0d 09 09 09 2a 2f 0d 09 | 09 09 53 65 74 50 74 28 |....*/..|..SetPt(| |00003920| 26 63 65 6c 6c 2c 20 30 | 2c 20 30 29 3b 0d 09 09 |&cell, 0|, 0);...| |00003930| 09 0d 09 09 09 2f 2a 20 | 64 65 73 65 6c 65 63 74 |...../* |deselect| |00003940| 20 61 6c 6c 20 63 65 6c | 6c 73 20 77 68 69 63 68 | all cel|ls which| |00003950| 20 61 72 65 20 63 75 72 | 72 65 6e 74 6c 79 20 73 | are cur|rently s| |00003960| 65 6c 65 63 74 65 64 2e | 0d 09 09 09 2a 2f 0d 09 |elected.|....*/..| |00003970| 09 09 4c 44 65 73 65 6c | 65 63 74 28 6c 69 73 74 |..LDesel|ect(list| |00003980| 29 3b 0d 09 09 09 09 0d | 09 09 09 2f 2a 20 75 73 |);......|.../* us| |00003990| 65 20 74 68 65 20 63 75 | 73 74 6f 6d 20 73 65 61 |e the cu|stom sea| |000039a0| 72 63 68 20 70 72 6f 63 | 65 64 75 72 65 2e 0d 09 |rch proc|edure...| |000039b0| 09 09 2a 2a 20 74 68 65 | 20 64 65 66 61 75 6c 74 |..** the| default| |000039c0| 20 73 65 61 72 63 68 20 | 70 72 6f 63 65 64 75 72 | search |procedur| |000039d0| 65 20 69 73 20 6e 6f 74 | 20 63 61 73 65 20 73 65 |e is not| case se| |000039e0| 6e 73 69 74 69 76 65 2e | 0d 09 09 09 2a 2f 0d 09 |nsitive.|....*/..| |000039f0| 09 09 69 66 20 28 4c 53 | 65 61 72 63 68 28 26 73 |..if (LS|earch(&s| |00003a00| 74 72 69 6e 67 5b 31 5d | 2c 20 73 74 72 69 6e 67 |tring[1]|, string| |00003a10| 5b 30 5d 2c 20 4d 79 53 | 65 61 72 63 68 2c 20 26 |[0], MyS|earch, &| |00003a20| 63 65 6c 6c 2c 20 6c 69 | 73 74 29 29 20 7b 0d 09 |cell, li|st)) {..| |00003a30| 09 09 0d 09 09 09 09 2f | 2a 20 68 69 6c 69 74 65 |......./|* hilite| |00003a40| 20 74 68 65 20 63 65 6c | 6c 20 77 68 69 63 68 20 | the cel|l which | |00003a50| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6d 61 74 |contains| the mat| |00003a60| 63 68 69 6e 67 20 73 74 | 72 69 6e 67 2e 0d 09 09 |ching st|ring....| |00003a70| 09 09 2a 2a 0d 09 09 09 | 09 2a 2a 20 6e 6f 74 65 |..**....|.** note| |00003a80| 20 74 68 61 74 20 74 68 | 69 73 20 63 61 6c 6c 20 | that th|is call | |00003a90| 77 69 6c 6c 20 73 65 6c | 65 63 74 20 6f 72 20 68 |will sel|ect or h| |00003aa0| 69 6c 69 74 65 20 61 20 | 63 65 6c 6c 20 77 68 69 |ilite a |cell whi| |00003ab0| 63 68 20 69 73 20 65 6d | 70 74 79 0d 09 09 09 09 |ch is em|pty.....| |00003ac0| 2a 2a 20 77 68 65 6e 20 | 74 68 65 20 75 73 65 72 |** when |the user| |00003ad0| 73 20 73 65 61 72 63 68 | 20 73 74 72 69 6e 67 20 |s search| string | |00003ae0| 69 73 20 65 6d 70 74 79 | 20 65 76 65 6e 20 74 68 |is empty| even th| |00003af0| 6f 75 67 68 20 74 68 65 | 20 6c 69 73 74 27 73 0d |ough the| list's.| |00003b00| 09 09 09 09 2a 2a 20 73 | 65 6c 65 63 74 69 6f 6e |....** s|election| |00003b10| 20 66 6c 61 67 73 20 66 | 69 65 6c 64 20 69 73 20 | flags f|ield is | |00003b20| 73 65 74 20 74 6f 20 6c | 4e 6f 4e 69 6c 48 69 6c |set to l|NoNilHil| |00003b30| 69 74 65 2e 20 74 68 65 | 20 73 65 6c 65 63 74 69 |ite. the| selecti| |00003b40| 6f 6e 20 66 6c 61 67 73 | 0d 09 09 09 09 2a 2a 20 |on flags|.....** | |00003b50| 61 72 65 20 75 73 65 64 | 20 6f 6e 6c 79 20 62 79 |are used| only by| |00003b60| 20 74 68 65 20 4c 43 6c | 69 63 6b 20 72 6f 75 74 | the LCl|ick rout| |00003b70| 69 6e 65 20 74 68 65 79 | 20 64 6f 20 6e 6f 74 20 |ine they| do not | |00003b80| 70 72 65 76 65 6e 74 20 | 74 68 65 20 70 72 6f 67 |prevent |the prog| |00003b90| 72 61 6d 0d 09 09 09 09 | 2a 2a 20 66 72 6f 6d 20 |ram.....|** from | |00003ba0| 73 65 6c 65 63 74 69 6e | 67 20 63 65 6c 6c 73 20 |selectin|g cells | |00003bb0| 77 69 74 68 20 4c 53 65 | 74 53 65 6c 65 63 74 20 |with LSe|tSelect | |00003bc0| 69 6e 20 73 75 63 68 20 | 61 20 77 61 79 20 74 68 |in such |a way th| |00003bd0| 61 74 20 6d 61 79 20 73 | 65 65 6d 20 0d 09 09 09 |at may s|eem ....| |00003be0| 09 2a 2a 20 69 6e 63 6f | 6e 73 69 73 74 65 6e 74 |.** inco|nsistent| |00003bf0| 20 77 69 74 68 20 74 68 | 65 69 72 20 73 65 74 74 | with th|eir sett| |00003c00| 69 6e 67 2e 20 74 68 69 | 73 20 70 65 63 75 6c 69 |ing. thi|s peculi| |00003c10| 61 72 69 74 79 20 63 61 | 6e 20 61 6c 73 6f 20 68 |arity ca|n also h| |00003c20| 61 70 70 65 6e 0d 09 09 | 09 09 2a 2a 20 77 69 74 |appen...|..** wit| |00003c30| 68 20 6f 74 68 65 72 20 | 73 65 6c 65 63 74 69 6f |h other |selectio| |00003c40| 6e 20 66 6c 61 67 20 73 | 65 74 74 69 6e 67 73 20 |n flag s|ettings | |00003c50| 61 6e 64 20 74 68 65 20 | 4c 53 65 74 53 65 6c 65 |and the |LSetSele| |00003c60| 63 74 20 63 61 6c 6c 2e | 0d 09 09 09 09 2a 2f 0d |ct call.|.....*/.| |00003c70| 09 09 09 09 4c 53 65 74 | 53 65 6c 65 63 74 28 74 |....LSet|Select(t| |00003c80| 72 75 65 2c 20 63 65 6c | 6c 2c 20 6c 69 73 74 29 |rue, cel|l, list)| |00003c90| 3b 0d 09 09 09 09 0d 09 | 09 09 09 2f 2a 20 69 66 |;.......|.../* if| |00003ca0| 20 74 68 65 20 6d 61 74 | 63 68 69 6e 67 20 63 65 | the mat|ching ce| |00003cb0| 6c 6c 20 69 73 20 6e 6f | 74 20 76 69 73 69 62 6c |ll is no|t visibl| |00003cc0| 65 20 69 74 20 77 69 6c | 6c 20 62 65 20 73 63 72 |e it wil|l be scr| |00003cd0| 6f 6c 6c 65 64 20 69 6e | 74 6f 20 76 69 65 77 2e |olled in|to view.| |00003ce0| 0d 09 09 09 09 2a 2f 0d | 09 09 09 09 4c 41 75 74 |.....*/.|....LAut| |00003cf0| 6f 53 63 72 6f 6c 6c 28 | 6c 69 73 74 29 3b 0d 09 |oScroll(|list);..| |00003d00| 09 09 7d 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |..}....b|reak;...| |00003d10| 09 0d 09 09 2f 2a 20 70 | 72 6f 63 65 73 73 20 68 |..../* p|rocess h| |00003d20| 69 74 73 20 69 6e 20 74 | 68 65 20 53 65 74 20 62 |its in t|he Set b| |00003d30| 75 74 74 6f 6e 2e 0d 09 | 09 2a 2f 20 0d 09 09 63 |utton...|.*/ ...c| |00003d40| 61 73 65 20 63 53 65 74 | 49 74 65 6d 20 3a 0d 09 |ase cSet|Item :..| |00003d50| 09 09 47 65 74 44 49 74 | 65 6d 28 64 69 61 6c 6f |..GetDIt|em(dialo| |00003d60| 67 2c 20 63 54 65 78 74 | 49 74 65 6d 2c 20 26 69 |g, cText|Item, &i| |00003d70| 74 65 6d 54 79 70 65 2c | 20 26 69 74 65 6d 48 61 |temType,| &itemHa| |00003d80| 6e 64 6c 65 2c 20 26 69 | 74 65 6d 52 65 63 74 29 |ndle, &i|temRect)| |00003d90| 3b 0d 09 09 09 47 65 74 | 49 54 65 78 74 28 69 74 |;....Get|IText(it| |00003da0| 65 6d 48 61 6e 64 6c 65 | 2c 20 73 74 72 69 6e 67 |emHandle|, string| |00003db0| 29 3b 0d 09 09 09 0d 09 | 09 09 2f 2a 20 66 69 6e |);......|../* fin| |00003dc0| 64 20 6f 75 74 20 77 68 | 69 63 68 20 77 61 73 20 |d out wh|ich was | |00003dd0| 74 68 65 20 6c 61 73 74 | 20 63 65 6c 6c 20 63 6c |the last| cell cl| |00003de0| 69 63 6b 65 64 20 69 6e | 20 62 79 20 74 68 65 20 |icked in| by the | |00003df0| 75 73 65 72 2e 0d 09 09 | 09 2a 2a 20 6e 6f 74 20 |user....|.** not | |00003e00| 74 68 65 20 6c 61 73 74 | 20 63 65 6c 6c 20 64 72 |the last| cell dr| |00003e10| 61 67 67 65 64 20 69 6e | 74 6f 2c 20 6f 72 20 74 |agged in|to, or t| |00003e20| 68 65 20 6c 61 73 74 20 | 63 65 6c 6c 20 73 65 6c |he last |cell sel| |00003e30| 65 63 74 65 64 20 62 75 | 74 20 74 68 65 0d 09 09 |ected bu|t the...| |00003e40| 09 2a 2a 20 6c 61 73 74 | 20 63 65 6c 6c 20 61 20 |.** last| cell a | |00003e50| 6d 6f 75 73 65 20 64 6f | 77 6e 20 65 76 65 6e 74 |mouse do|wn event| |00003e60| 20 6f 63 63 75 72 65 64 | 20 69 6e 2e 0d 09 09 09 | occured| in.....| |00003e70| 2a 2f 0d 09 09 09 63 65 | 6c 6c 20 3d 20 4c 4c 61 |*/....ce|ll = LLa| |00003e80| 73 74 43 6c 69 63 6b 28 | 6c 69 73 74 29 3b 0d 09 |stClick(|list);..| |00003e90| 09 09 69 66 20 28 30 20 | 3c 3d 20 63 65 6c 6c 2e |..if (0 |<= cell.| |00003ea0| 68 20 26 26 20 30 20 3c | 3d 20 63 65 6c 6c 2e 76 |h && 0 <|= cell.v| |00003eb0| 29 20 7b 0d 09 09 09 0d | 09 09 09 09 0d 09 09 09 |) {.....|........| |00003ec0| 09 2f 2a 20 69 66 20 61 | 20 63 65 6c 6c 20 68 61 |./* if a| cell ha| |00003ed0| 73 20 62 65 65 6e 20 63 | 6c 69 63 6b 65 64 20 69 |s been c|licked i| |00003ee0| 6e 20 74 68 65 6e 20 64 | 65 73 65 6c 65 63 74 20 |n then d|eselect | |00003ef0| 61 6c 6c 20 63 65 6c 6c | 73 20 77 68 69 63 68 20 |all cell|s which | |00003f00| 61 72 65 0d 09 09 09 09 | 2a 2a 20 63 75 72 72 65 |are.....|** curre| |00003f10| 6e 74 6c 79 20 73 65 6c | 65 63 74 65 64 2e 0d 09 |ntly sel|ected...| |00003f20| 09 09 09 2a 2f 0d 09 09 | 09 09 4c 44 65 73 65 6c |...*/...|..LDesel| |00003f30| 65 63 74 28 6c 69 73 74 | 29 3b 0d 0d 09 09 09 09 |ect(list|);......| |00003f40| 2f 2a 20 73 65 74 20 74 | 68 65 20 63 65 6c 6c 20 |/* set t|he cell | |00003f50| 74 6f 20 74 68 65 20 73 | 74 72 69 6e 67 20 74 68 |to the s|tring th| |00003f60| 65 20 75 73 65 72 20 68 | 61 73 20 65 6e 74 65 72 |e user h|as enter| |00003f70| 65 64 2e 0d 09 09 09 09 | 2a 2f 0d 09 09 09 09 4c |ed......|*/.....L| |00003f80| 53 65 74 43 65 6c 6c 28 | 26 73 74 72 69 6e 67 5b |SetCell(|&string[| |00003f90| 31 5d 2c 20 73 74 72 69 | 6e 67 5b 30 5d 2c 20 63 |1], stri|ng[0], c| |00003fa0| 65 6c 6c 2c 20 6c 69 73 | 74 29 3b 0d 09 09 09 09 |ell, lis|t);.....| |00003fb0| 0d 09 09 09 09 2f 2a 20 | 6e 6f 74 69 63 65 20 74 |...../* |notice t| |00003fc0| 68 61 74 20 74 68 69 73 | 20 77 69 6c 6c 20 48 69 |hat this| will Hi| |00003fd0| 6c 69 74 65 20 61 6e 20 | 65 6d 70 74 79 20 63 65 |lite an |empty ce| |00003fe0| 6c 6c 20 65 76 65 6e 20 | 77 69 74 68 0d 09 09 09 |ll even |with....| |00003ff0| 09 2a 2a 20 74 68 65 20 | 6c 69 73 74 27 73 20 73 |.** the |list's s| |00004000| 65 6c 65 63 74 69 6f 6e | 20 66 6c 61 67 73 20 73 |election| flags s| |00004010| 65 74 20 74 6f 20 6c 4e | 6f 4e 69 6c 48 69 6c 69 |et to lN|oNilHili| |00004020| 74 65 2e 0d 09 09 09 09 | 2a 2f 0d 09 09 09 09 4c |te......|*/.....L| |00004030| 53 65 74 53 65 6c 65 63 | 74 28 74 72 75 65 2c 20 |SetSelec|t(true, | |00004040| 63 65 6c 6c 2c 20 6c 69 | 73 74 29 3b 0d 0d 09 09 |cell, li|st);....| |00004050| 09 09 2f 2a 20 69 66 20 | 74 68 65 20 6c 61 73 74 |../* if |the last| |00004060| 20 63 65 6c 6c 20 63 6c | 69 63 6b 65 64 20 69 6e | cell cl|icked in| |00004070| 20 69 73 20 6e 6f 74 20 | 76 69 73 69 62 6c 65 20 | is not |visible | |00004080| 69 74 20 77 69 6c 6c 20 | 62 65 20 73 63 72 6f 6c |it will |be scrol| |00004090| 6c 65 64 0d 09 09 09 09 | 2a 2a 20 69 6e 74 6f 20 |led.....|** into | |000040a0| 76 69 65 77 2e 0d 09 09 | 09 09 2a 2f 0d 09 09 09 |view....|..*/....| |000040b0| 09 4c 41 75 74 6f 53 63 | 72 6f 6c 6c 28 6c 69 73 |.LAutoSc|roll(lis| |000040c0| 74 29 3b 0d 09 09 09 7d | 0d 09 09 09 62 72 65 61 |t);....}|....brea| |000040d0| 6b 3b 0d 09 09 09 0d 09 | 09 2f 2a 20 70 72 6f 63 |k;......|./* proc| |000040e0| 65 73 73 20 68 69 74 73 | 20 69 6e 20 74 68 65 20 |ess hits| in the | |000040f0| 63 68 65 63 6b 20 62 6f | 78 65 73 20 72 65 70 72 |check bo|xes repr| |00004100| 65 73 65 6e 74 69 6e 67 | 20 74 68 65 20 6c 69 73 |esenting| the lis| |00004110| 74 27 73 20 73 65 6c 65 | 63 74 69 6f 6e 20 66 6c |t's sele|ction fl| |00004120| 61 67 73 2e 0d 09 09 2a | 2f 20 0d 09 09 63 61 73 |ags....*|/ ...cas| |00004130| 65 20 63 4f 6e 6c 79 4f | 6e 65 49 74 65 6d 20 3a |e cOnlyO|neItem :| |00004140| 0d 09 09 63 61 73 65 20 | 63 45 78 74 65 6e 64 44 |...case |cExtendD| |00004150| 72 61 67 49 74 65 6d 20 | 3a 0d 09 09 63 61 73 65 |ragItem |:...case| |00004160| 20 63 4e 6f 44 69 73 6a | 6f 69 6e 74 49 74 65 6d | cNoDisj|ointItem| |00004170| 20 3a 0d 09 09 63 61 73 | 65 20 63 4e 6f 45 78 74 | :...cas|e cNoExt| |00004180| 65 6e 64 49 74 65 6d 20 | 3a 0d 09 09 63 61 73 65 |endItem |:...case| |00004190| 20 63 4e 6f 52 65 63 74 | 49 74 65 6d 20 3a 0d 09 | cNoRect|Item :..| |000041a0| 09 63 61 73 65 20 63 55 | 73 65 53 65 6e 73 65 49 |.case cU|seSenseI| |000041b0| 74 65 6d 20 3a 0d 09 09 | 63 61 73 65 20 63 4e 6f |tem :...|case cNo| |000041c0| 4e 69 6c 48 69 6c 69 74 | 65 49 74 65 6d 20 3a 0d |NilHilit|eItem :.| |000041d0| 09 09 0d 09 09 09 2f 2a | 20 64 65 73 65 6c 65 63 |....../*| deselec| |000041e0| 74 20 61 6c 6c 20 63 65 | 6c 6c 73 20 77 68 69 63 |t all ce|lls whic| |000041f0| 68 20 61 72 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |h are cu|rrently | |00004200| 73 65 6c 65 63 74 65 64 | 2e 0d 09 09 09 2a 2f 0d |selected|.....*/.| |00004210| 09 09 09 4c 44 65 73 65 | 6c 65 63 74 28 6c 69 73 |...LDese|lect(lis| |00004220| 74 29 3b 0d 09 09 09 0d | 09 09 09 2f 2a 20 74 6f |t);.....|.../* to| |00004230| 67 67 6c 65 20 74 68 65 | 20 63 68 65 63 6b 20 62 |ggle the| check b| |00004240| 6f 78 2e 0d 09 09 09 2a | 2f 0d 09 09 09 47 65 74 |ox.....*|/....Get| |00004250| 44 49 74 65 6d 28 64 69 | 61 6c 6f 67 2c 20 69 74 |DItem(di|alog, it| |00004260| 65 6d 4e 6f 2c 20 26 69 | 74 65 6d 54 79 70 65 2c |emNo, &i|temType,| |00004270| 20 26 69 74 65 6d 48 61 | 6e 64 6c 65 2c 20 26 69 | &itemHa|ndle, &i| |00004280| 74 65 6d 52 65 63 74 29 | 3b 0d 20 20 09 09 09 63 |temRect)|;. ...c| |00004290| 68 65 63 6b 65 64 20 3d | 20 47 65 74 43 74 6c 56 |hecked =| GetCtlV| |000042a0| 61 6c 75 65 28 28 43 6f | 6e 74 72 6f 6c 48 61 6e |alue((Co|ntrolHan| |000042b0| 64 6c 65 29 20 69 74 65 | 6d 48 61 6e 64 6c 65 29 |dle) ite|mHandle)| |000042c0| 3b 0d 20 20 09 09 09 53 | 65 74 43 74 6c 56 61 6c |;. ...S|etCtlVal| |000042d0| 75 65 28 28 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |ue((Cont|rolHandl| |000042e0| 65 29 20 69 74 65 6d 48 | 61 6e 64 6c 65 2c 20 21 |e) itemH|andle, !| |000042f0| 63 68 65 63 6b 65 64 29 | 3b 0d 0d 09 09 09 2f 2a |checked)|;...../*| |00004300| 20 61 64 6a 75 73 74 20 | 74 68 65 20 73 65 6c 65 | adjust |the sele| |00004310| 63 74 69 6f 6e 20 66 6c | 61 67 73 20 74 6f 20 74 |ction fl|ags to t| |00004320| 68 65 20 75 73 65 72 73 | 20 6e 65 77 20 73 65 74 |he users| new set| |00004330| 74 69 6e 67 73 2e 0d 09 | 09 09 2a 2f 0d 09 09 09 |tings...|..*/....| |00004340| 73 77 69 74 63 68 20 28 | 69 74 65 6d 4e 6f 29 20 |switch (|itemNo) | |00004350| 7b 0d 09 09 09 63 61 73 | 65 20 63 4f 6e 6c 79 4f |{....cas|e cOnlyO| |00004360| 6e 65 49 74 65 6d 20 3a | 0d 09 09 09 09 28 2a 6c |neItem :|.....(*l| |00004370| 69 73 74 29 2d 3e 73 65 | 6c 46 6c 61 67 73 20 5e |ist)->se|lFlags ^| |00004380| 3d 20 6c 4f 6e 6c 79 4f | 6e 65 3b 20 62 72 65 61 |= lOnlyO|ne; brea| |00004390| 6b 3b 0d 09 09 09 63 61 | 73 65 20 63 45 78 74 65 |k;....ca|se cExte| |000043a0| 6e 64 44 72 61 67 49 74 | 65 6d 20 3a 0d 09 09 09 |ndDragIt|em :....| |000043b0| 09 28 2a 6c 69 73 74 29 | 2d 3e 73 65 6c 46 6c 61 |.(*list)|->selFla| |000043c0| 67 73 20 5e 3d 20 6c 45 | 78 74 65 6e 64 44 72 61 |gs ^= lE|xtendDra| |000043d0| 67 3b 20 62 72 65 61 6b | 3b 0d 09 09 09 63 61 73 |g; break|;....cas| |000043e0| 65 20 63 4e 6f 44 69 73 | 6a 6f 69 6e 74 49 74 65 |e cNoDis|jointIte| |000043f0| 6d 20 3a 0d 09 09 09 09 | 28 2a 6c 69 73 74 29 2d |m :.....|(*list)-| |00004400| 3e 73 65 6c 46 6c 61 67 | 73 20 5e 3d 20 6c 4e 6f |>selFlag|s ^= lNo| |00004410| 44 69 73 6a 6f 69 6e 74 | 3b 20 62 72 65 61 6b 3b |Disjoint|; break;| |00004420| 0d 09 09 09 63 61 73 65 | 20 63 4e 6f 45 78 74 65 |....case| cNoExte| |00004430| 6e 64 49 74 65 6d 20 3a | 0d 09 09 09 09 28 2a 6c |ndItem :|.....(*l| |00004440| 69 73 74 29 2d 3e 73 65 | 6c 46 6c 61 67 73 20 5e |ist)->se|lFlags ^| |00004450| 3d 20 6c 4e 6f 45 78 74 | 65 6e 64 3b 20 62 72 65 |= lNoExt|end; bre| |00004460| 61 6b 3b 0d 09 09 09 63 | 61 73 65 20 63 4e 6f 52 |ak;....c|ase cNoR| |00004470| 65 63 74 49 74 65 6d 20 | 3a 0d 09 09 09 09 28 2a |ectItem |:.....(*| |00004480| 6c 69 73 74 29 2d 3e 73 | 65 6c 46 6c 61 67 73 20 |list)->s|elFlags | |00004490| 5e 3d 20 6c 4e 6f 52 65 | 63 74 3b 20 62 72 65 61 |^= lNoRe|ct; brea| |000044a0| 6b 3b 0d 09 09 09 63 61 | 73 65 20 63 55 73 65 53 |k;....ca|se cUseS| |000044b0| 65 6e 73 65 49 74 65 6d | 20 3a 0d 09 09 09 09 28 |enseItem| :.....(| |000044c0| 2a 6c 69 73 74 29 2d 3e | 73 65 6c 46 6c 61 67 73 |*list)->|selFlags| |000044d0| 20 5e 3d 20 6c 55 73 65 | 53 65 6e 73 65 3b 20 62 | ^= lUse|Sense; b| |000044e0| 72 65 61 6b 3b 0d 09 09 | 09 63 61 73 65 20 63 4e |reak;...|.case cN| |000044f0| 6f 4e 69 6c 48 69 6c 69 | 74 65 49 74 65 6d 20 3a |oNilHili|teItem :| |00004500| 0d 09 09 09 09 28 2a 6c | 69 73 74 29 2d 3e 73 65 |.....(*l|ist)->se| |00004510| 6c 46 6c 61 67 73 20 5e | 3d 20 6c 4e 6f 4e 69 6c |lFlags ^|= lNoNil| |00004520| 48 69 6c 69 74 65 3b 20 | 62 72 65 61 6b 3b 0d 09 |Hilite; |break;..| |00004530| 09 09 7d 0d 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |..}.....|break;..| |00004540| 09 7d 09 09 09 09 0d 09 | 7d 20 77 68 69 6c 65 20 |.}......|} while | |00004550| 28 28 69 74 65 6d 4e 6f | 20 21 3d 20 6f 6b 29 20 |((itemNo| != ok) | |00004560| 26 26 20 28 69 74 65 6d | 4e 6f 20 21 3d 20 63 61 |&& (item|No != ca| |00004570| 6e 63 65 6c 29 29 3b 0d | 09 0d 09 2f 2a 20 20 6b |ncel));.|.../* k| |00004580| 69 6c 6c 20 74 68 65 20 | 6c 69 73 74 20 61 6e 64 |ill the |list and| |00004590| 20 64 69 61 6c 6f 67 2e | 0d 09 2a 2f 0d 09 4c 44 | dialog.|..*/..LD| |000045a0| 69 73 70 6f 73 65 28 6c | 69 73 74 29 3b 0d 09 44 |ispose(l|ist);..D| |000045b0| 69 73 70 6f 73 44 69 61 | 6c 6f 67 28 64 69 61 6c |isposDia|log(dial| |000045c0| 6f 67 29 3b 0d 09 0d 09 | 2f 2a 20 72 65 74 75 72 |og);....|/* retur| |000045d0| 6e 20 74 72 75 65 20 69 | 66 20 4f 4b 20 6f 72 20 |n true i|f OK or | |000045e0| 52 45 54 55 52 4e 20 6b | 65 79 20 77 61 73 20 68 |RETURN k|ey was h| |000045f0| 69 74 2e 0d 09 2a 2f 0d | 09 72 65 74 75 72 6e 20 |it...*/.|.return | |00004600| 28 6f 6b 20 3d 3d 20 69 | 74 65 6d 4e 6f 29 3b 0d |(ok == i|temNo);.| |00004610| 7d 0d 0d 2f 2a 20 6a 75 | 73 74 20 61 20 66 75 6e |}../* ju|st a fun| |00004620| 6b 79 20 72 6f 75 74 69 | 6e 65 20 74 6f 20 63 72 |ky routi|ne to cr| |00004630| 65 61 74 65 20 73 74 72 | 69 6e 67 73 20 66 6f 72 |eate str|ings for| |00004640| 20 74 68 65 20 63 65 6c | 6c 27 73 20 64 61 74 61 | the cel|l's data| |00004650| 0d 2a 2f 0d 23 70 72 61 | 67 6d 61 20 73 65 67 6d |.*/.#pra|gma segm| |00004660| 65 6e 74 20 4d 61 69 6e | 0d 6c 6f 6e 67 20 43 65 |ent Main|.long Ce| |00004670| 6c 6c 32 53 74 72 69 6e | 67 28 70 74 2c 20 73 74 |ll2Strin|g(pt, st| |00004680| 72 69 6e 67 29 0d 09 09 | 09 50 6f 69 6e 74 09 09 |ring)...|.Point..| |00004690| 70 74 3b 0d 09 09 09 63 | 68 61 72 20 09 09 2a 73 |pt;....c|har ..*s| |000046a0| 74 72 69 6e 67 3b 0d 7b | 0d 09 61 75 74 6f 09 73 |tring;.{|..auto.s| |000046b0| 68 6f 72 74 09 09 69 6e | 64 65 78 3b 0d 09 61 75 |hort..in|dex;..au| |000046c0| 74 6f 09 53 74 72 32 35 | 35 09 09 72 6f 77 53 74 |to.Str25|5..rowSt| |000046d0| 72 3b 0d 09 61 75 74 6f | 09 53 74 72 32 35 35 09 |r;..auto|.Str255.| |000046e0| 09 63 6f 6c 53 74 72 3b | 0d 09 0d 09 4e 75 6d 54 |.colStr;|....NumT| |000046f0| 6f 53 74 72 69 6e 67 28 | 28 6c 6f 6e 67 29 70 74 |oString(|(long)pt| |00004700| 2e 76 2c 20 72 6f 77 53 | 74 72 29 3b 0d 09 2a 28 |.v, rowS|tr);..*(| |00004710| 73 74 72 69 6e 67 29 2b | 2b 20 3d 20 27 52 27 3b |string)+|+ = 'R';| |00004720| 0d 09 66 6f 72 20 28 69 | 6e 64 65 78 20 3d 20 31 |..for (i|ndex = 1| |00004730| 3b 20 69 6e 64 65 78 20 | 3c 3d 20 72 6f 77 53 74 |; index |<= rowSt| |00004740| 72 5b 30 5d 3b 20 2b 2b | 69 6e 64 65 78 29 0d 09 |r[0]; ++|index)..| |00004750| 09 2a 28 73 74 72 69 6e | 67 2b 2b 29 20 3d 20 72 |.*(strin|g++) = r| |00004760| 6f 77 53 74 72 5b 69 6e | 64 65 78 5d 3b 0d 09 09 |owStr[in|dex];...| |00004770| 0d 09 2a 28 73 74 72 69 | 6e 67 29 2b 2b 20 3d 20 |..*(stri|ng)++ = | |00004780| 27 2c 27 3b 0d 09 2a 28 | 73 74 72 69 6e 67 29 2b |',';..*(|string)+| |00004790| 2b 20 3d 20 27 20 27 3b | 0d 0d 09 4e 75 6d 54 6f |+ = ' ';|...NumTo| |000047a0| 53 74 72 69 6e 67 28 28 | 6c 6f 6e 67 29 70 74 2e |String((|long)pt.| |000047b0| 68 2c 20 63 6f 6c 53 74 | 72 29 3b 0d 09 2a 28 73 |h, colSt|r);..*(s| |000047c0| 74 72 69 6e 67 29 2b 2b | 20 3d 20 27 43 27 3b 0d |tring)++| = 'C';.| |000047d0| 09 66 6f 72 20 28 69 6e | 64 65 78 20 3d 20 31 3b |.for (in|dex = 1;| |000047e0| 20 69 6e 64 65 78 20 3c | 3d 20 63 6f 6c 53 74 72 | index <|= colStr| |000047f0| 5b 30 5d 3b 20 2b 2b 69 | 6e 64 65 78 29 20 0d 09 |[0]; ++i|ndex) ..| |00004800| 09 2a 28 73 74 72 69 6e | 67 2b 2b 29 20 3d 20 63 |.*(strin|g++) = c| |00004810| 6f 6c 53 74 72 5b 69 6e | 64 65 78 5d 3b 0d 09 0d |olStr[in|dex];...| |00004820| 09 72 65 74 75 72 6e 20 | 63 6f 6c 53 74 72 5b 30 |.return |colStr[0| |00004830| 5d 20 2b 20 72 6f 77 53 | 74 72 5b 30 5d 20 2b 20 |] + rowS|tr[0] + | |00004840| 34 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |4;.}....|........| |00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00004860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00004870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00004880| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 1e |.......L|...L....| |00004890| 43 6f 70 79 43 6c 65 61 | 72 20 3d 20 54 52 55 45 |CopyClea|r = TRUE| |000048a0| 3b 0d 09 09 70 61 73 74 | 65 20 3d 20 54 52 55 45 |;...past|e = TRUE| |000048b0| 0b 4d 6f 64 61 6c 4c 69 | 73 74 2e 63 02 00 00 00 |.ModalLi|st.c....| |000048c0| 54 45 58 54 4d 50 53 20 | 01 00 00 14 00 60 00 00 |TEXTMPS |.....`..| |000048d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 14 00 60 |..TEXTMP|S .....`| |000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000048f0| 00 00 a1 4b 04 00 00 00 | 47 c5 00 00 01 6a 29 5b |...K....|G....j)[| |00004900| 30 5d 5b 30 5d 20 29 0d | 09 09 09 69 66 20 28 20 |0][0] ).|...if ( | |00004910| 73 65 6c 53 74 61 72 74 | 20 3c 20 73 65 6c 45 6e |selStart| < selEn| |00004920| 64 20 29 0d 09 09 09 09 | 63 75 74 43 6f 70 79 43 |d ).....|cutCopyC| |00004930| 6c 65 61 72 20 3d 20 54 | 52 55 45 3b 0d 09 09 09 |lear = T|RUE;....| |00004940| 09 2f 2a 43 75 74 2c 20 | 43 6f 70 79 2c 20 61 6e |./*Cut, |Copy, an| |00004950| 64 20 43 6c 65 61 72 20 | 69 73 20 65 6e 61 62 6c |d Clear |is enabl| |00004960| 65 64 20 66 6f 72 20 61 | 70 70 2e 20 77 69 6e 64 |ed for a|pp. wind| |00004970| 6f 77 73 20 77 69 74 68 | 20 73 65 6c 65 63 74 69 |ows with| selecti| |00004980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 01 d1 |...H..Mo|naco....| |00004990| 00 00 00 14 00 01 21 a8 | 00 0a 00 00 00 00 00 00 |......!.|........| |000049a0| 00 00 01 d8 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....| |000049b0| 02 7d 00 50 00 20 01 dd | 02 3d a1 55 59 a4 00 00 |.}.P. ..|.=.UY...| |000049c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........| |000049d0| 00 00 01 4c 00 00 00 4c | 00 00 00 1e 00 25 27 dc |...L...L|.....%'.| |000049e0| 09 30 00 00 00 1c 00 1e | ff ff 00 00 00 00 00 00 |.0......|........| |000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+